File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/mongodb-memory-server-core/src/__tests__ Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ import * as utils from '../util/utils';
99import { MongoMemoryInstanceOpts } from '../util/MongoInstance' ;
1010import { ReplsetCountLowError , StateError , WaitForPrimaryTimeoutError } from '../util/errors' ;
1111import { assertIsError } from './testUtils/test_utils' ;
12+ import * as debug from 'debug' ;
1213
1314jest . setTimeout ( 100000 ) ; // 10s
1415
1516afterEach ( ( ) => {
1617 jest . restoreAllMocks ( ) ;
18+ debug . disable ( ) ;
1719} ) ;
1820
1921describe ( 'single server replset' , ( ) => {
@@ -275,6 +277,8 @@ describe('single server replset', () => {
275277 } ) ;
276278
277279 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:*' ) ;
278282 // @ts -expect-error because "initAllServers" is protected
279283 jest . spyOn ( MongoMemoryReplSet . prototype , 'initAllServers' ) ;
280284 const replSet = await MongoMemoryReplSet . create ( {
You can’t perform that action at this time.
0 commit comments