summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/commands/test_userscripts.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/commands/test_userscripts.py b/tests/unit/commands/test_userscripts.py
index 280450b68..8a14847d6 100644
--- a/tests/unit/commands/test_userscripts.py
+++ b/tests/unit/commands/test_userscripts.py
@@ -74,10 +74,11 @@ def test_command(qtbot, py_proc, runner):
with open(os.environ['QUTE_FIFO'], 'w') as f:
f.write('foo\n')
""")
- with qtbot.waitSignal(runner.got_cmd, timeout=10000) as blocker:
- runner.prepare_run(cmd, *args)
- runner.store_html('')
- runner.store_text('')
+ with qtbot.waitSignal(runner.finished, timeout=10000):
+ with qtbot.waitSignal(runner.got_cmd, timeout=10000) as blocker:
+ runner.prepare_run(cmd, *args)
+ runner.store_html('')
+ runner.store_text('')
assert blocker.args == ['foo']