Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventually(func() bool { return true; }, time.Second, 10*time.Millisecond)
(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})
| 313 | // |
| 314 | // a.Eventually(func() bool { return true; }, time.Second, 10*time.Millisecond) |
| 315 | func (a *Assertions) Eventually(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool { |
| 316 | if h, ok := a.t.(tHelper); ok { |
| 317 | h.Helper() |
| 318 | } |
| 319 | return Eventually(a.t, condition, waitFor, tick, msgAndArgs...) |
| 320 | } |
| 321 | |
| 322 | // EventuallyWithT asserts that given condition will be met in waitFor time, |
| 323 | // periodically checking target function each tick. In contrast to Eventually, |
nothing calls this directly
no test coverage detected