From 633881039612e4123bebe3cf322afd5c5022021c Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Fri, 17 Nov 2017 21:42:24 -0500 Subject: [PATCH] Increase timeouts for javascript tests --- tests/unit/javascript/conftest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/javascript/conftest.py b/tests/unit/javascript/conftest.py index 7290d4d00..8490a5362 100644 --- a/tests/unit/javascript/conftest.py +++ b/tests/unit/javascript/conftest.py @@ -140,7 +140,8 @@ class JSTester: **kwargs: Passed to jinja's template.render(). """ template = self._jinja_env.get_template(path) - with self._qtbot.waitSignal(self.webview.loadFinished) as blocker: + with self._qtbot.waitSignal(self.webview.loadFinished, + timeout=2000) as blocker: self.webview.setHtml(template.render(**kwargs)) assert blocker.args == [True] @@ -161,7 +162,8 @@ class JSTester: url: The QUrl to load. force: Whether to force loading even if the file is invalid. """ - with self._qtbot.waitSignal(self.webview.loadFinished) as blocker: + with self._qtbot.waitSignal(self.webview.loadFinished, + timeout=2000) as blocker: self.webview.load(url) if not force: assert blocker.args == [True]