Skip to content

Commit 2177256

Browse files
committed
Fix intermittent failure in test_exhaust_network_error.
1 parent 648301e commit 2177256

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ def test_exhaust_network_error(self):
950950
client = get_client(max_pool_size=1)
951951
collection = client.pymongo_test.test
952952
pool = get_pool(client)
953+
pool._check_interval_seconds = None # Never check.
953954

954955
# Cause a network error.
955956
sock_info = one(pool.sockets)

0 commit comments

Comments
 (0)