There was an error while loading. Please reload this page.
1 parent 9128866 commit 807f719Copy full SHA for 807f719
test/test_mongos_load_balancing.py
@@ -161,8 +161,14 @@ def test_local_threshold(self):
161
client.db.command('ismaster')
162
except:
163
pass
164
- # No error
165
- client.db.command('ismaster')
+
+ # We eventually connect to a new mongos.
166
+ def connect_to_new_mongos():
167
+ try:
168
+ return client.db.command('ismaster')
169
+ except AutoReconnect:
170
+ pass
171
+ wait_until(connect_to_new_mongos, 'connect to a new mongos')
172
173
def test_load_balancing(self):
174
# Although the server selection JSON tests already prove that
0 commit comments