Tweak unit test to reduce likelihood of flake under heavy load

https://buildkite.com/ankitects/anki-ci/builds/5698#0187bd42-c032-4078-909d-035a57892e0e
This commit is contained in:
Damien Elmes 2023-04-26 21:37:40 +10:00
parent d4675e4ee9
commit 54678bff63

View file

@ -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