Skip to content

Commit

Permalink
chore: feature rm
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Dec 19, 2024
1 parent ea94a32 commit 54e08c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/integration/node-specific/mongo_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -865,16 +865,16 @@ 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;
});

it('does not instantiate logger', () => {
const client = new MongoClient('mongodb://localhost:27017', {
__enableMongoLogger: featureFlagValue
__enableMongoLogger: optionValue
});
expect(client.mongoLogger).to.not.exist;
});
Expand All @@ -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;
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/sdam/server_selection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ describe('server selection', function () {
});
});

describe('server selection logging feature flagging', function () {
describe('willLog()', function () {
let mockServer;
let topology;
let address;
Expand Down

0 comments on commit 54e08c9

Please sign in to comment.