summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-06-25 21:25:55 +0200
committerLars-Dominik Braun <lars@6xq.net>2018-06-25 21:25:55 +0200
commit33a137f2d7c04468038d689b53a70fb534297f55 (patch)
treeee7c2d0b71890bb96c0800774a7401f6a2e42cd3
parent0b9824c35f2053b27c3c0d494dc1d29aac9aaa81 (diff)
downloadcrocoite-33a137f2d7c04468038d689b53a70fb534297f55.tar.gz
crocoite-33a137f2d7c04468038d689b53a70fb534297f55.tar.bz2
crocoite-33a137f2d7c04468038d689b53a70fb534297f55.zip
browser: Fix testcase race condition
-rw-r--r--crocoite/test_browser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/crocoite/test_browser.py b/crocoite/test_browser.py
index 92d9676..9d37efb 100644
--- a/crocoite/test_browser.py
+++ b/crocoite/test_browser.py
@@ -192,7 +192,11 @@ def test_invalidurl (loader):
url = 'http://nonexistent.example/'
with loader (url) as l:
l.start ()
+
q = l.queue
+ if not l.notify.wait (10):
+ assert False, 'timeout'
+
it = q.popleft ()
assert it.failed