Skip to content

Commit

Permalink
Add tolerance for test value of TestConnectionPoolTimeouts.test_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ecerulm committed Jan 20, 2024
1 parent bbba487 commit 8beb350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/with_dummyserver/test_connectionpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_timeout(self) -> None:
delta = time.time() - now

message = "timeout was pool-level SHORT_TIMEOUT rather than request-level LONG_TIMEOUT"
assert delta >= LONG_TIMEOUT, message
assert delta >= (LONG_TIMEOUT - 1e-5), message
block_event.set() # Release request

# Timeout passed directly to request should raise a request timeout
Expand Down

0 comments on commit 8beb350

Please sign in to comment.