From 3f58bf9d89ef36c644d3d483c743dae3b0e5fe24 Mon Sep 17 00:00:00 2001 From: Chadwick Boulay Date: Mon, 23 Sep 2024 21:33:07 -0400 Subject: [PATCH] test_aclock_agen give a little more buffer for clock wonkiness --- 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 68ae49d..ef7cad3 100644 --- a/tests/test_synth.py +++ b/tests/test_synth.py @@ -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