Skip to content

Commit c612c58

Browse files
committed
Increase test threshold to account for variance
1 parent 1b34973 commit c612c58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_discovery_and_monitoring.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ async def mock_close(self, reason):
433433
# Wait until all idle connections are closed to simulate real-world conditions
434434
await listener.async_wait_for_event(monitoring.ConnectionClosedEvent, 10)
435435
# No operation latency should not significantly exceed close_delay
436-
self.assertLessEqual(max(latencies), close_delay * 1.5)
436+
self.assertLessEqual(max(latencies), close_delay * 2.0)
437437
finally:
438438
AsyncConnection.close_conn = original_close
439439
await task.join()

test/test_discovery_and_monitoring.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def mock_close(self, reason):
431431
# Wait until all idle connections are closed to simulate real-world conditions
432432
listener.wait_for_event(monitoring.ConnectionClosedEvent, 10)
433433
# No operation latency should not significantly exceed close_delay
434-
self.assertLessEqual(max(latencies), close_delay * 1.5)
434+
self.assertLessEqual(max(latencies), close_delay * 2.0)
435435
finally:
436436
Connection.close_conn = original_close
437437
task.join()

0 commit comments

Comments
 (0)