Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeoutException - add original timeout value to exception msg #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions easypy/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@ def timeout_for_condition():
# NOTE: without a timeout we will never get here
if pred(): # Try one last time, to make sure the last check was not (possibly too long) before the timeout
return
raise TimeoutException('{condition} timed out after {duration} waiting for {msg}',
condition=self, msg=msg % args, duration=timer.elapsed)
raise TimeoutException('{condition} timed out after {duration}(out of {timeout}) waiting for {msg}',
condition=self, msg=msg % args, duration=timer.elapsed, timeout=timeout)
_logger.debug('%s - waiting for ' + msg, self, *args)
yield

Expand Down