summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-11-08 18:02:57 +0100
committerFlorian Bruhin <me@the-compiler.org>2022-11-08 18:02:57 +0100
commit2b86f66e483b12d666f4829126d3bf20da7b13a6 (patch)
treeb5916669f582c72ed4f1bcfb7846f5e7fd71adf8
parent1f5ad8abfbfdcab6683d77bbc81b20d3cb668793 (diff)
downloadqutebrowser-2b86f66e483b12d666f4829126d3bf20da7b13a6.tar.gz
qutebrowser-2b86f66e483b12d666f4829126d3bf20da7b13a6.zip
tests: Try to fix Windows flakiness in userscript runner test
-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)