Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond)
(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})
| 393 | // |
| 394 | // assert.Eventually(t, func() bool { return true; }, time.Second, 10*time.Millisecond) |
| 395 | func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) { |
| 396 | if h, ok := t.(tHelper); ok { |
| 397 | h.Helper() |
| 398 | } |
| 399 | if assert.Eventually(t, condition, waitFor, tick, msgAndArgs...) { |
| 400 | return |
| 401 | } |
| 402 | t.FailNow() |
| 403 | } |
| 404 | |
| 405 | // EventuallyWithT asserts that given condition will be met in waitFor time, |
| 406 | // periodically checking target function each tick. In contrast to Eventually, |
no test coverage detected
searching dependent graphs…