Skip to content

Commit

Permalink
Increase test time tolerance (#305)
Browse files Browse the repository at this point in the history
* Increase test time tolerance

Signed-off-by: Jorge Perez <[email protected]>
  • Loading branch information
Blast545 authored Mar 31, 2022
1 parent 2b51343 commit eeac508
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def test_timer_action_sanity_check():
assert 0 == ls.run()
assert shutdown_reasons[0].reason == 'One second timeout'

# Verify that 1 sec has passed between start of test and timeout
tolerance = 0.1
assert (end_time - start_time) > 1 - tolerance
# Verify that at least 1 sec has passed between start of test and timeout
tolerance = 1.0
assert (end_time - start_time) > 1
assert (end_time - start_time) < 1 + tolerance


Expand Down

0 comments on commit eeac508

Please sign in to comment.