EventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is consi
(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})
| 340 | // assert.True(c, externalValue, "expected 'externalValue' to be true") |
| 341 | // }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") |
| 342 | func (a *Assertions) EventuallyWithT(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) { |
| 343 | if h, ok := a.t.(tHelper); ok { |
| 344 | h.Helper() |
| 345 | } |
| 346 | EventuallyWithT(a.t, condition, waitFor, tick, msgAndArgs...) |
| 347 | } |
| 348 | |
| 349 | // EventuallyWithTf asserts that given condition will be met in waitFor time, |
| 350 | // periodically checking target function each tick. In contrast to Eventually, |
nothing calls this directly
no test coverage detected