diff --git a/test/integration/node-specific/mongo_client.test.ts b/test/integration/node-specific/mongo_client.test.ts index 17957a510d..059d9d82c2 100644 --- a/test/integration/node-specific/mongo_client.test.ts +++ b/test/integration/node-specific/mongo_client.test.ts @@ -865,8 +865,8 @@ describe('class MongoClient', function () { }); }); - for (const featureFlagValue of [false, undefined]) { - context(`when set to ${featureFlagValue}`, () => { + for (const optionValue of [false, undefined]) { + context(`when set to ${optionValue}`, () => { context('when logging is enabled for a component', () => { before(() => { process.env['MONGODB_LOG_COMMAND'] = SeverityLevel.EMERGENCY; @@ -874,7 +874,7 @@ describe('class MongoClient', function () { it('does not instantiate logger', () => { const client = new MongoClient('mongodb://localhost:27017', { - __enableMongoLogger: featureFlagValue + __enableMongoLogger: optionValue }); expect(client.mongoLogger).to.not.exist; }); @@ -887,7 +887,7 @@ describe('class MongoClient', function () { it('does not instantiate logger', () => { const client = new MongoClient('mongodb://localhost:27017', { - __enableMongoLogger: featureFlagValue + __enableMongoLogger: optionValue }); expect(client.mongoLogger).to.not.exist; }); diff --git a/test/unit/sdam/server_selection.test.ts b/test/unit/sdam/server_selection.test.ts index e2c581dfb9..b372178479 100644 --- a/test/unit/sdam/server_selection.test.ts +++ b/test/unit/sdam/server_selection.test.ts @@ -610,7 +610,7 @@ describe('server selection', function () { }); }); - describe('server selection logging feature flagging', function () { + describe('willLog()', function () { let mockServer; let topology; let address;