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

Function TestEventuallyWithTSucceedQuickly

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

Source from the content-addressed store, hash-verified

3527}
3528
3529func TestEventuallyWithTSucceedQuickly(t *testing.T) {
3530 t.Parallel()
3531
3532 mockT := new(testing.T)
3533
3534 condition := func(t *CollectT) {}
3535
3536 // By making the tick longer than the total duration, we expect that this test would fail if
3537 // we didn't check the condition before the first tick elapses.
3538 True(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, time.Second))
3539}
3540
3541func TestNeverFalse(t *testing.T) {
3542 t.Parallel()

Callers

nothing calls this directly

Calls 2

TrueFunction · 0.70
EventuallyWithTFunction · 0.70

Tested by

no test coverage detected