From 97785fd508f3793d9191e5319656f6e602bd6984 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Jul 2023 10:40:37 +1000 Subject: [PATCH] Add delay to test_modelChange() Have seen this fail on macOS a couple of times, and once on Windows, so the issue does not appear Windows-only, and the existing delay does not appear to have been long enough in all cases. --- pylib/tests/test_models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pylib/tests/test_models.py b/pylib/tests/test_models.py index f9450c387..632180fb9 100644 --- a/pylib/tests/test_models.py +++ b/pylib/tests/test_models.py @@ -390,9 +390,7 @@ def test_modelChange(): assert note.cards()[0].id == c1.id # delete first card map = {0: None, 1: 1} - if is_win: - # The low precision timer on Windows reveals a race condition - time.sleep(0.05) + time.sleep(0.25) col.models.change(basic, [note.id], basic, noop, map) note.load() c0.load()