File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ async def run_test(self):
142
142
# tests.
143
143
copts ["tlsAllowInvalidHostnames" ] = True
144
144
145
- client = AsyncPyMongoTestCase . unmanaged_simple_client (uri , ** copts )
145
+ client = self . simple_client (uri , ** copts )
146
146
if client ._options .connect :
147
147
await client .aconnect ()
148
148
if num_seeds is not None :
@@ -159,7 +159,6 @@ async def run_test(self):
159
159
await client .admin .command ("ping" )
160
160
# XXX: we should block until SRV poller runs at least once
161
161
# and re-run these assertions.
162
- await client .close ()
163
162
else :
164
163
try :
165
164
parse_uri (uri )
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def run_test(self):
142
142
# tests.
143
143
copts ["tlsAllowInvalidHostnames" ] = True
144
144
145
- client = PyMongoTestCase . unmanaged_simple_client (uri , ** copts )
145
+ client = self . simple_client (uri , ** copts )
146
146
if client ._options .connect :
147
147
client ._connect ()
148
148
if num_seeds is not None :
@@ -157,7 +157,6 @@ def run_test(self):
157
157
client .admin .command ("ping" )
158
158
# XXX: we should block until SRV poller runs at least once
159
159
# and re-run these assertions.
160
- client .close ()
161
160
else :
162
161
try :
163
162
parse_uri (uri )
You can’t perform that action at this time.
0 commit comments