File tree 2 files changed +6
-0
lines changed
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):
80
80
self .assertEqual (cursor_ns , target_ns )
81
81
82
82
self .assertIn (cursor_id , succeeded .reply ["cursorsKilled" ])
83
+ await client .close ()
83
84
84
85
# Test no auth
85
86
async def test_2 (self ):
86
87
client = await self .async_rs_client_noauth ()
87
88
await client .admin .command ("ping" )
89
+ await client .close ()
88
90
89
91
# Test with auth
90
92
async def test_3 (self ):
91
93
for mechanism in ["SCRAM-SHA-1" , "SCRAM-SHA-256" ]:
92
94
client = await self .async_rs_or_single_client (authMechanism = mechanism )
93
95
await client [self .TEST_DB ][self .TEST_COLLECTION ].find_one ()
96
+ await client .close ()
94
97
95
98
96
99
# Location of JSON test specifications.
Original file line number Diff line number Diff line change @@ -80,17 +80,20 @@ def test_1(self):
80
80
self .assertEqual (cursor_ns , target_ns )
81
81
82
82
self .assertIn (cursor_id , succeeded .reply ["cursorsKilled" ])
83
+ client .close ()
83
84
84
85
# Test no auth
85
86
def test_2 (self ):
86
87
client = self .rs_client_noauth ()
87
88
client .admin .command ("ping" )
89
+ client .close ()
88
90
89
91
# Test with auth
90
92
def test_3 (self ):
91
93
for mechanism in ["SCRAM-SHA-1" , "SCRAM-SHA-256" ]:
92
94
client = self .rs_or_single_client (authMechanism = mechanism )
93
95
client [self .TEST_DB ][self .TEST_COLLECTION ].find_one ()
96
+ client .close ()
94
97
95
98
96
99
# Location of JSON test specifications.
You can’t perform that action at this time.
0 commit comments