From ddf783b69a400411db2bee155052f648396c3c7f Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Tue, 19 Nov 2024 15:43:17 -0800 Subject: [PATCH] PYTHON-4982 Remove redundant configureFailPoint (#2012) --- test/asynchronous/test_retryable_reads.py | 5 ++--- test/test_retryable_reads.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/asynchronous/test_retryable_reads.py b/test/asynchronous/test_retryable_reads.py index b2d86f5d8..bde7a9f2e 100644 --- a/test/asynchronous/test_retryable_reads.py +++ b/test/asynchronous/test_retryable_reads.py @@ -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: diff --git a/test/test_retryable_reads.py b/test/test_retryable_reads.py index d4951db5e..9c3f6b170 100644 --- a/test/test_retryable_reads.py +++ b/test/test_retryable_reads.py @@ -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: