summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/commands/test_userscripts.py4
1 files changed, 4 insertions, 0 deletions
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)