(t *testing.T)
| 3515 | } |
| 3516 | |
| 3517 | func 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 | |
| 3529 | func TestEventuallyWithTSucceedQuickly(t *testing.T) { |
| 3530 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…