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

Function TestEventuallyWithTFailNow

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

Source from the content-addressed store, hash-verified

3477}
3478
3479func TestEventuallyWithTFailNow(t *testing.T) {
3480 t.Parallel()
3481
3482 mockT := new(CollectT)
3483
3484 condition := func(collect *CollectT) {
3485 collect.FailNow()
3486 }
3487
3488 False(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, 20*time.Millisecond))
3489 Len(t, mockT.errors, 1)
3490}
3491
3492// Check that a long running condition doesn't block Eventually.
3493// See issue 805 (and its long tail of following issues)

Callers

nothing calls this directly

Calls 4

FalseFunction · 0.70
EventuallyWithTFunction · 0.70
LenFunction · 0.70
FailNowMethod · 0.65

Tested by

no test coverage detected