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{})
| 463 | // |
| 464 | // assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted") |
| 465 | func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) { |
| 466 | if h, ok := t.(tHelper); ok { |
| 467 | h.Helper() |
| 468 | } |
| 469 | if assert.Eventuallyf(t, condition, waitFor, tick, msg, args...) { |
| 470 | return |
| 471 | } |
| 472 | t.FailNow() |
| 473 | } |
| 474 | |
| 475 | // Exactly asserts that two objects are equal in value and type. |
| 476 | // |
no test coverage detected
searching dependent graphs…