mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Let executor CI test pass under worse conditions (#104849)
This commit is contained in:
parent
7767bb328d
commit
1273bc8ec4
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user