EventuallyWithTf 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 cons
(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{})
| 377 | // assert.True(c, externalValue, "expected 'externalValue' to be true") |
| 378 | // }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") |
| 379 | func (a *Assertions) EventuallyWithTf(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { |
| 380 | if h, ok := a.t.(tHelper); ok { |
| 381 | h.Helper() |
| 382 | } |
| 383 | return EventuallyWithTf(a.t, condition, waitFor, tick, msg, args...) |
| 384 | } |
| 385 | |
| 386 | // Eventuallyf asserts that given condition will be met in waitFor time, |
| 387 | // periodically checking target function each tick. |
nothing calls this directly
no test coverage detected