From 2b86f66e483b12d666f4829126d3bf20da7b13a6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 8 Nov 2022 18:02:57 +0100 Subject: tests: Try to fix Windows flakiness in userscript runner test --- tests/unit/commands/test_userscripts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/commands/test_userscripts.py b/tests/unit/commands/test_userscripts.py index 436e9e2a7..f7b6aa466 100644 --- a/tests/unit/commands/test_userscripts.py +++ b/tests/unit/commands/test_userscripts.py @@ -201,6 +201,10 @@ def test_killed_command(qtbot, tmp_path, py_proc, runner, caplog): runner.store_text('Hello World') runner.store_html('') + # For some reason, this tends to be flaky on Windows, and we got the + # directoryChanged signal *without* the file existing (wut?)... + qtbot.waitUntil(data_file.exists) + # Make sure the PID was written to the file, not just the file created time.sleep(0.5) -- cgit v1.2.3-54-g00ecf