File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ async def run_test(self):
143
143
copts ["tlsAllowInvalidHostnames" ] = True
144
144
145
145
client = AsyncPyMongoTestCase .unmanaged_simple_client (uri , ** copts )
146
+ if client ._options .connect :
147
+ await client .aconnect ()
146
148
if num_seeds is not None :
147
149
self .assertEqual (len (client ._topology_settings .seeds ), num_seeds )
148
150
if hosts is not None :
Original file line number Diff line number Diff line change @@ -143,10 +143,14 @@ def run_test(self):
143
143
copts ["tlsAllowInvalidHostnames" ] = True
144
144
145
145
client = PyMongoTestCase .unmanaged_simple_client (uri , ** copts )
146
+ if client ._options .connect :
147
+ client ._connect ()
146
148
if num_seeds is not None :
147
149
self .assertEqual (len (client ._topology_settings .seeds ), num_seeds )
148
150
if hosts is not None :
149
- wait_until (lambda : hosts == client .nodes , "match test hosts to client nodes" )
151
+ wait_until (
152
+ lambda : hosts == client .nodes , "match test hosts to client nodes"
153
+ )
150
154
if num_hosts is not None :
151
155
wait_until (
152
156
lambda : num_hosts == len (client .nodes ), "wait to connect to num_hosts"
You can’t perform that action at this time.
0 commit comments