PYTHON-4982 Remove redundant configureFailPoint (#2012)

This commit is contained in:
Shane Harvey 2024-11-19 15:43:17 -08:00 committed by GitHub
parent a7c1090056
commit ddf783b69a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -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:

View File

@ -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: