Let executor CI test pass under worse conditions (#104849)

This commit is contained in:
Jan Bouwhuis 2023-12-01 07:05:26 +01:00 committed by GitHub
parent 7767bb328d
commit 1273bc8ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,10 @@ async def test_overall_timeout_reached(caplog: pytest.LogCaptureFixture) -> None
iexecutor.shutdown()
finish = time.monotonic()
assert finish - start < 1.3
# Idealy execution time (finish - start) should be < 1.2 sec.
# CI tests might not run in an ideal environment and timing might
# not be accurate, so we let this test pass
# if the duration is below 3 seconds.
assert finish - start < 3.0
iexecutor.shutdown()