diff options
author | toofar <toofar@spalge.com> | 2023-11-18 20:05:59 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2023-11-19 13:43:22 +1300 |
commit | 5e03e9bf3a4003afc5379e0cf299b95d9fa7f382 (patch) | |
tree | c0c84f1839f032e048708167a9b356476a627ce4 | |
parent | e338beeb9b7b519caa29f586c4cfabe8f7da8bc2 (diff) | |
download | qutebrowser-5e03e9bf3a4003afc5379e0cf299b95d9fa7f382.tar.gz qutebrowser-5e03e9bf3a4003afc5379e0cf299b95d9fa7f382.zip |
try see if jseval still works on after flaky tests
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index a2f870e32..2e04bf6b8 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -458,7 +458,12 @@ class QuteProc(testprocess.Process): kwargs['divisor'] = 10 else: kwargs['divisor'] = 1 - return super().wait_for(timeout=timeout, **kwargs) + try: + return super().wait_for(timeout=timeout, **kwargs) + except testprocess.WaitForTimeout as err: + self.send_cmd(":jseval console.log('console logging works after timeout')") + self.wait_for_js("console logging works after timeout") + raise err def _is_error_logline(self, msg): """Check if the given LogLine is some kind of error message.""" |