Skip to content

Commit

Permalink
testutils: return early instead of first breaking in LogObserver.Expe…
Browse files Browse the repository at this point in the history
…ctFunc

Signed-off-by: redwrasse <[email protected]>
  • Loading branch information
redwrasse committed Dec 13, 2023
1 parent d298130 commit 8a75963
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/framework/testutils/log_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,10 @@ func (logOb *LogObserver) ExpectFunc(ctx context.Context, filter func(string) bo
}

if len(res) >= count {
break
return res, nil
}
}

if len(res) >= count {
return res, nil
}
time.Sleep(10 * time.Millisecond)
}
}
Expand Down

0 comments on commit 8a75963

Please sign in to comment.