Skip to content

Commit

Permalink
chore: fix search for 'no digests left, finished' in nightly job
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Aaron <[email protected]>
  • Loading branch information
andaaron committed Nov 15, 2024
1 parent 334b121 commit 5f93bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/blackbox/helpers_wait.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function wait_str() {
local search_term="$2"
local wait_time="${3:-2m}"

(timeout $wait_time tail -F -n0 "$filepath" &) | grep -q "$search_term" && return 0
(timeout $wait_time tail -F -n +1 "$filepath" &) | grep -q "$search_term" && return 0

echo "timeout of $wait_time reached. unable to find '$search_term' in '$filepath'"

Expand Down

0 comments on commit 5f93bad

Please sign in to comment.