- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for WaitCompare (0.08 sec)
-
pkg/test/util/assert/tracker.go
} return nil }, retry.Timeout(time.Second), retry.BackoffDelay(time.Millisecond)) if err != nil { t.t.Fatal(err) } t.Empty() } // WaitCompare waits for an event to happen and ensures it meets a custom comparison function func (t *Tracker[T]) WaitCompare(f func(T) bool) { t.t.Helper() var err error retry.UntilSuccessOrFail(t.t, func() error { t.mu.Lock() defer t.mu.Unlock() if len(t.events) == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 3.6K bytes - Viewed (0)