File tree 1 file changed +2
-2
lines changed
test/integration/node-specific
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', () => {
470
470
client = this . configuration . newClient ( ) ;
471
471
utilClient = this . configuration . newClient ( ) ;
472
472
await client . connect ( ) ;
473
- const collection = client . db ( 'db' ) . collection ( 'collection' ) ;
473
+ const collection = await client . db ( 'db' ) . collection ( 'collection' ) ;
474
474
session = client . startSession ( { explicit : false } ) ;
475
475
session . startTransaction ( ) ;
476
476
await collection . insertOne ( { x : 1 } , { session } ) ;
@@ -532,7 +532,7 @@ describe('MongoClient.close() Integration', () => {
532
532
client = this . configuration . newClient ( ) ;
533
533
utilClient = this . configuration . newClient ( ) ;
534
534
await client . connect ( ) ;
535
- const collection = client . db ( 'db' ) . collection ( 'collection' ) ;
535
+ const collection = await client . db ( 'db' ) . collection ( 'collection' ) ;
536
536
session = client . startSession ( ) ;
537
537
session . startTransaction ( ) ;
538
538
await collection . insertOne ( { x : 1 } , { session } ) ;
You can’t perform that action at this time.
0 commit comments