PYTHON-4982 Remove redundant configureFailPoint (#2012)
This commit is contained in:
parent
a7c1090056
commit
ddf783b69a
@ -174,9 +174,8 @@ class TestRetryableReads(AsyncIntegrationTest):
|
||||
retryReads=True,
|
||||
)
|
||||
|
||||
async with self.fail_point(fail_command):
|
||||
with self.assertRaises(AutoReconnect):
|
||||
await client.t.t.find_one({})
|
||||
with self.assertRaises(AutoReconnect):
|
||||
await client.t.t.find_one({})
|
||||
|
||||
# Disable failpoints on each mongos
|
||||
for client in mongos_clients:
|
||||
|
||||
@ -174,9 +174,8 @@ class TestRetryableReads(IntegrationTest):
|
||||
retryReads=True,
|
||||
)
|
||||
|
||||
with self.fail_point(fail_command):
|
||||
with self.assertRaises(AutoReconnect):
|
||||
client.t.t.find_one({})
|
||||
with self.assertRaises(AutoReconnect):
|
||||
client.t.t.find_one({})
|
||||
|
||||
# Disable failpoints on each mongos
|
||||
for client in mongos_clients:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user