From 33a137f2d7c04468038d689b53a70fb534297f55 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 25 Jun 2018 21:25:55 +0200 Subject: browser: Fix testcase race condition --- crocoite/test_browser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crocoite') 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 -- cgit v1.2.3