Skip to content

Commit

Permalink
Further loosen clock constraints in test_clock_gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Sep 26, 2024
1 parent 1fb927c commit 604b693
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 @@ -40,7 +40,7 @@ def test_clock_gen(dispatch_rate: typing.Optional[float]):
t_elapsed = time.time() - t_start
assert all([_ == ez.Flag() for _ in result])
if dispatch_rate is not None:
assert (run_time - 1 / dispatch_rate) < t_elapsed < (run_time + 0.1)
assert (run_time - 1 / dispatch_rate) < t_elapsed < (run_time + 0.2)
else:
# 100 usec per iteration is pretty generous
assert t_elapsed < (n_target * 1e-4)
Expand Down

0 comments on commit 604b693

Please sign in to comment.