Skip to content

Commit 29e11e1

Browse files
committed
Revert "test(MongoMemoryReplSet): enable debug for often open-handle test"
This reverts commit 5817244. it seems like the issue that resulted in enabling logging is resolved
1 parent 3881105 commit 29e11e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/mongodb-memory-server-core/src/__tests__/MongoMemoryReplSet.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ import * as utils from '../util/utils';
99
import { MongoMemoryInstanceOpts } from '../util/MongoInstance';
1010
import { ReplsetCountLowError, StateError, WaitForPrimaryTimeoutError } from '../util/errors';
1111
import { assertIsError } from './testUtils/test_utils';
12-
import * as debug from 'debug';
1312

1413
jest.setTimeout(100000); // 10s
1514

1615
afterEach(() => {
1716
jest.restoreAllMocks();
18-
debug.disable();
1917
});
2018

2119
describe('single server replset', () => {
@@ -277,8 +275,6 @@ describe('single server replset', () => {
277275
});
278276

279277
it('should make use of "AutomaticAuth" (wiredTiger)', async () => {
280-
// enable debug logs for this test, because it seems to often have a open handle after error
281-
debug.enable('MongoMS:*');
282278
// @ts-expect-error because "initAllServers" is protected
283279
jest.spyOn(MongoMemoryReplSet.prototype, 'initAllServers');
284280
const replSet = await MongoMemoryReplSet.create({

0 commit comments

Comments
 (0)