Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})
| 170 | // |
| 171 | // assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted") |
| 172 | func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { |
| 173 | if h, ok := t.(tHelper); ok { |
| 174 | h.Helper() |
| 175 | } |
| 176 | return Eventually(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...) |
| 177 | } |
| 178 | |
| 179 | // EventuallyWithTf asserts that given condition will be met in waitFor time, |
| 180 | // periodically checking target function each tick. In contrast to Eventually, |
no test coverage detected
searching dependent graphs…