From 5e03e9bf3a4003afc5379e0cf299b95d9fa7f382 Mon Sep 17 00:00:00 2001 From: toofar Date: Sat, 18 Nov 2023 20:05:59 +1300 Subject: [PATCH] try see if jseval still works on after flaky tests --- tests/end2end/fixtures/quteprocess.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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."""