tests: Make ClockObject test a little laxer again
This failed on the Windows builder because apparently time.sleep is apparently not super precise on Windows.
This commit is contained in:
parent
f47b92347c
commit
c218af2f49
|
|
@ -16,13 +16,13 @@ def test_clock_jump_frame_time(clockobj):
|
|||
def test_clock_get_real_time(clockobj):
|
||||
current_time = clockobj.get_real_time()
|
||||
time.sleep(0.4)
|
||||
assert clockobj.get_real_time() - current_time >= 0.4
|
||||
assert clockobj.get_real_time() - current_time >= 0.39
|
||||
|
||||
|
||||
def test_clock_get_long_time(clockobj):
|
||||
current_time = clockobj.get_long_time()
|
||||
time.sleep(0.4)
|
||||
assert clockobj.get_long_time() - current_time >= 0.4
|
||||
assert clockobj.get_long_time() - current_time >= 0.39
|
||||
|
||||
|
||||
def test_clock_get_dt(clockobj):
|
||||
|
|
|
|||
Loading…
Reference in New Issue