From 604b6932f9e7c4859c266f4c4ae1e478ad320cf7 Mon Sep 17 00:00:00 2001 From: Chadwick Boulay Date: Wed, 25 Sep 2024 22:09:52 -0400 Subject: [PATCH] Further loosen clock constraints in test_clock_gen. --- tests/test_synth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_synth.py b/tests/test_synth.py index 22549e1..c6fa2f8 100644 --- a/tests/test_synth.py +++ b/tests/test_synth.py @@ -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)