Skip to content

Commit

Permalink
test_aclock_agen give a little more buffer for clock wonkiness
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Sep 24, 2024
1 parent 7e6afbf commit 3f58bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def test_aclock_agen(dispatch_rate: typing.Optional[float]):
t_elapsed = time.time() - t_start
assert all([_ == ez.Flag() for _ in result])
if dispatch_rate:
assert (run_time - 1 / dispatch_rate) < t_elapsed < (run_time + 0.1)
assert (run_time - 1.1 / dispatch_rate) < t_elapsed < (run_time + 0.1)
else:
assert t_elapsed < (n_target * 1e-4) # 100 usec per iteration is pretty generous

Expand Down

0 comments on commit 3f58bf9

Please sign in to comment.