diff --git a/tests/functional/ingestion/IngestionReader.js b/tests/functional/ingestion/IngestionReader.js index 89623156d..6b20929e5 100644 --- a/tests/functional/ingestion/IngestionReader.js +++ b/tests/functional/ingestion/IngestionReader.js @@ -112,11 +112,11 @@ describe('ingestion reader tests with mock', function fD() { const topic = testConfig.extensions.ingestion.topic; async.waterfall([ next => { - const client = new MongoClient(mongoUrl,{ + const client = new MongoClient(mongoUrl, { replicaSet: 'rs0', useNewUrlParser: true, readPreference: 'primary', - } ); + }); client.connect().then(client => { this.client = client; this.db = this.client.db('metadata', {