MCPcopy
hub / github.com/stretchr/testify / Eventuallyf

Function Eventuallyf

assert/assertion_format.go:172–177  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

170//
171// assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
172func 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,

Callers 2

EventuallyfFunction · 0.92
EventuallyfMethod · 0.70

Calls 2

EventuallyFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…