(t *testing.T)
| 3477 | } |
| 3478 | |
| 3479 | func 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) |
nothing calls this directly
no test coverage detected