trying to fix test failures

This commit is contained in:
Eric Froemling 2022-03-18 22:16:38 -05:00
parent 02399815ed
commit bd0f952ddf
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98

View File

@ -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())