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

Function TestEventuallySucceedQuickly

assert/assertions_test.go:3517–3527  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3515}
3516
3517func TestEventuallySucceedQuickly(t *testing.T) {
3518 t.Parallel()
3519
3520 mockT := new(testing.T)
3521
3522 condition := func() bool { return true }
3523
3524 // By making the tick longer than the total duration, we expect that this test would fail if
3525 // we didn't check the condition before the first tick elapses.
3526 True(t, Eventually(mockT, condition, 100*time.Millisecond, time.Second))
3527}
3528
3529func TestEventuallyWithTSucceedQuickly(t *testing.T) {
3530 t.Parallel()

Callers

nothing calls this directly

Calls 2

TrueFunction · 0.70
EventuallyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…