File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/integration/node-specific Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ describe('MongoClient.close() Integration', () => {
470470 client = this . configuration . newClient ( ) ;
471471 utilClient = this . configuration . newClient ( ) ;
472472 await client . connect ( ) ;
473- const collection = client . db ( 'db' ) . collection ( 'collection' ) ;
473+ const collection = await client . db ( 'db' ) . collection ( 'collection' ) ;
474474 session = client . startSession ( { explicit : false } ) ;
475475 session . startTransaction ( ) ;
476476 await collection . insertOne ( { x : 1 } , { session } ) ;
@@ -532,7 +532,7 @@ describe('MongoClient.close() Integration', () => {
532532 client = this . configuration . newClient ( ) ;
533533 utilClient = this . configuration . newClient ( ) ;
534534 await client . connect ( ) ;
535- const collection = client . db ( 'db' ) . collection ( 'collection' ) ;
535+ const collection = await client . db ( 'db' ) . collection ( 'collection' ) ;
536536 session = client . startSession ( ) ;
537537 session . startTransaction ( ) ;
538538 await collection . insertOne ( { x : 1 } , { session } ) ;
You can’t perform that action at this time.
0 commit comments