Skip to content

Commit

Permalink
Log message if timeout reached
Browse files Browse the repository at this point in the history
  • Loading branch information
amochin committed Aug 13, 2024
1 parent b721725 commit daf6595
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DatabaseLibrary/assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def check_row_count(
check_ok = True
except AssertionError as e:
if time_counter >= timestr_to_secs(retry_timeout):
logger.info(f"Timeout '{retry_timeout}' reached")
raise e
BuiltIn().sleep(retry_pause)
time_counter += timestr_to_secs(retry_pause)
Expand Down Expand Up @@ -390,6 +391,7 @@ def check_query_result(
check_ok = True
except AssertionError as e:
if time_counter >= timestr_to_secs(retry_timeout):
logger.info(f"Timeout '{retry_timeout}' reached")
raise e
BuiltIn().sleep(retry_pause)
time_counter += timestr_to_secs(retry_pause)
Expand Down

0 comments on commit daf6595

Please sign in to comment.