File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,20 @@ async def test_1(self):
8080 self .assertEqual (cursor_ns , target_ns )
8181
8282 self .assertIn (cursor_id , succeeded .reply ["cursorsKilled" ])
83+ await client .close ()
8384
8485 # Test no auth
8586 async def test_2 (self ):
8687 client = await self .async_rs_client_noauth ()
8788 await client .admin .command ("ping" )
89+ await client .close ()
8890
8991 # Test with auth
9092 async def test_3 (self ):
9193 for mechanism in ["SCRAM-SHA-1" , "SCRAM-SHA-256" ]:
9294 client = await self .async_rs_or_single_client (authMechanism = mechanism )
9395 await client [self .TEST_DB ][self .TEST_COLLECTION ].find_one ()
96+ await client .close ()
9497
9598
9699# Location of JSON test specifications.
Original file line number Diff line number Diff line change @@ -80,17 +80,20 @@ def test_1(self):
8080 self .assertEqual (cursor_ns , target_ns )
8181
8282 self .assertIn (cursor_id , succeeded .reply ["cursorsKilled" ])
83+ client .close ()
8384
8485 # Test no auth
8586 def test_2 (self ):
8687 client = self .rs_client_noauth ()
8788 client .admin .command ("ping" )
89+ client .close ()
8890
8991 # Test with auth
9092 def test_3 (self ):
9193 for mechanism in ["SCRAM-SHA-1" , "SCRAM-SHA-256" ]:
9294 client = self .rs_or_single_client (authMechanism = mechanism )
9395 client [self .TEST_DB ][self .TEST_COLLECTION ].find_one ()
96+ client .close ()
9497
9598
9699# Location of JSON test specifications.
You can’t perform that action at this time.
0 commit comments