mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 13:25:31 +08:00
trying to fix test failures
This commit is contained in:
parent
02399815ed
commit
bd0f952ddf
@ -244,7 +244,7 @@ def test_keepalive_fail() -> None:
|
||||
|
||||
# Sleep just past the keepalive timeout and make sure the endpoint
|
||||
# IS going down.
|
||||
await asyncio.sleep(ktimeout * 1.1)
|
||||
await asyncio.sleep(ktimeout * 1.25)
|
||||
assert tester.server.endpoint.is_closing()
|
||||
|
||||
tester.run(_do_it())
|
||||
@ -260,7 +260,7 @@ def test_keepalive_success() -> None:
|
||||
|
||||
# Sleep just past the keepalive timeout and make sure the endpoint
|
||||
# is NOT going down
|
||||
await asyncio.sleep(ktimeout * 1.1)
|
||||
await asyncio.sleep(ktimeout * 1.25)
|
||||
assert not tester.server.endpoint.is_closing()
|
||||
|
||||
tester.run(_do_it())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user