Skip to content

Commit

Permalink
PYTHON-4982 Remove redundant configureFailPoint (#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey authored Nov 19, 2024
1 parent a7c1090 commit ddf783b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions test/asynchronous/test_retryable_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ async def test_retryable_reads_in_sharded_cluster_multiple_available(self):
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:
Expand Down
5 changes: 2 additions & 3 deletions test/test_retryable_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ def test_retryable_reads_in_sharded_cluster_multiple_available(self):
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:
Expand Down

0 comments on commit ddf783b

Please sign in to comment.