From 54678bff63a81f25471733919f69e09698a6e597 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 26 Apr 2023 21:37:40 +1000 Subject: [PATCH] Tweak unit test to reduce likelihood of flake under heavy load https://buildkite.com/ankitects/anki-ci/builds/5698#0187bd42-c032-4078-909d-035a57892e0e --- pylib/tests/test_schedv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/tests/test_schedv2.py b/pylib/tests/test_schedv2.py index 78fcfcae3..0339c132e 100644 --- a/pylib/tests/test_schedv2.py +++ b/pylib/tests/test_schedv2.py @@ -184,7 +184,7 @@ def test_learn(): col.sched.answerCard(c, 3) # it should be due in 10 minutes dueIn = c.due - time.time() - assert 599 <= dueIn <= 600 * 1.25 + assert 598 <= dueIn <= 600 * 1.25 assert c.left % 1000 == 1 # the next pass should graduate the card assert c.queue == QUEUE_TYPE_LRN