Skip to content

Commit

Permalink
[Feature] Enhance CommonTestUtils#retry log for easier troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
liyubin117 committed Dec 23, 2024
1 parent f3b8897 commit e6b4c92
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ public static void retry(Duration timeout, Executable assertion) {
if (System.currentTimeMillis() - startTime >= maxWaitMs) {
throw t;
}
LOG.info("Attempt failed, sleeping for {} ms, and then retrying.", waitMs);
LOG.info(
"Attempt failed, sleeping for {} ms, and then retrying. caused by: {}\n",
waitMs,
t.getMessage());
try {
//noinspection BusyWait
Thread.sleep(waitMs);
Expand Down

0 comments on commit e6b4c92

Please sign in to comment.