Skip to content

Commit

Permalink
fix: interpolate the timeouts
Browse files Browse the repository at this point in the history
After going through the Sentry I've noticed we have missed (or it got
reformatted) some f-strings, so the constants for timeouts were not
interpolated into the log messages.

Signed-off-by: Matej Focko <[email protected]>
  • Loading branch information
mfocko committed Nov 6, 2024
1 parent b9d12a6 commit 2ac18c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation/testcase/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def check_pending_check_runs(self):
watch_end = datetime.now(tz=timezone.utc) + timedelta(minutes=self.CHECK_TIME_FOR_REACTION)
failure_message = (
"Github check runs were not set to queued in time "
"({self.CHECK_TIME_FOR_REACTION} minutes).\n"
f"({self.CHECK_TIME_FOR_REACTION} minutes).\n"
)

# when a new PR is opened
Expand Down Expand Up @@ -209,7 +209,7 @@ async def check_build_submitted(self):
if datetime.now(tz=timezone.utc) > watch_end:
self.failure_msg += (
"The build was not submitted in Copr in time "
"({self.CHECK_TIME_FOR_SUBMIT_BUILDS} minutes).\n"
f"({self.CHECK_TIME_FOR_SUBMIT_BUILDS} minutes).\n"
)
return

Expand Down

0 comments on commit 2ac18c5

Please sign in to comment.