diff --git a/tobiko/common/_retry.py b/tobiko/common/_retry.py index dacf20dca..77cc0e357 100644 --- a/tobiko/common/_retry.py +++ b/tobiko/common/_retry.py @@ -201,6 +201,9 @@ class Retry(object): _time.sleep(sleep_time) elapsed_time = _time.time() - start_time + if not sleep_time: # sleep_time is None or 0. + LOG.debug(f"retrying without waiting... ({attempt.details})") + @property def details(self) -> str: details = [] diff --git a/tobiko/shell/sh/_process.py b/tobiko/shell/sh/_process.py index fc0de1bea..bfd748144 100644 --- a/tobiko/shell/sh/_process.py +++ b/tobiko/shell/sh/_process.py @@ -349,7 +349,7 @@ class ShellProcessFixture(tobiko.SharedFixture): try: attempt.check_limits() except tobiko.RetryTimeLimitError: - pass + LOG.exception("retry timeout expired") else: return # Eventually raises ShellCommandTimeout exception