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