Add some wiggle room to test results
This commit is contained in:
parent
74fb9e0ad7
commit
37dd7f11a8
@ -254,7 +254,7 @@ def test_get_subreddit_time_verification(
|
||||
for r in results:
|
||||
result_time = datetime.fromtimestamp(r.created_utc)
|
||||
time_diff = nowtime - result_time
|
||||
assert time_diff < test_delta
|
||||
assert abs(time_diff - test_delta) < timedelta(seconds=1)
|
||||
|
||||
|
||||
@pytest.mark.online
|
||||
|
Loading…
Reference in New Issue
Block a user