Skip to content

Commit 1ffbe5e

Browse files
committed
fix for timeout test
1 parent 4486578 commit 1ffbe5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_recv_timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_recv_timeout_vs_keepalive(self) -> None:
4949
socket_mock.recv_into.assert_called()
5050

5151
now = time.monotonic()
52-
assert recv_timeout <= (now - start) < keep_alive
52+
assert recv_timeout <= round(now - start, 2) <= keep_alive
5353

5454

5555
if __name__ == "__main__":

0 commit comments

Comments
 (0)