Show timeout duration in error
This commit is contained in:
parent
ce2a543c43
commit
b853f3a986
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ def wait_till(self, q, timeout=10, timeout_msg=None):
|
|||
msg = 'The condition was not met'
|
||||
if timeout_msg is not None:
|
||||
msg = timeout_msg()
|
||||
raise TimeoutError(f'Timed out: {msg}. Screen contents: \n {repr(self.screen_contents())}')
|
||||
raise TimeoutError(f'Timed out after {timeout} seconds: {msg}. Screen contents: \n {repr(self.screen_contents())}')
|
||||
|
||||
def wait_till_child_exits(self, timeout=30 if BaseTest.is_ci else 10, require_exit_code=None):
|
||||
end_time = time.monotonic() + timeout
|
||||
|
|
|
|||
Loading…
Reference in a new issue