diff --git a/tests/framework/testutils/log_observer.go b/tests/framework/testutils/log_observer.go index 122898cee58..ac68fc98a39 100644 --- a/tests/framework/testutils/log_observer.go +++ b/tests/framework/testutils/log_observer.go @@ -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) } }