try see if jseval still works on after flaky tests

This commit is contained in:
toofar 2023-11-18 20:05:59 +13:00
parent e338beeb9b
commit 5e03e9bf3a
1 changed files with 6 additions and 1 deletions

View File

@ -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."""