(t *testing.T)
| 2795 | } |
| 2796 | |
| 2797 | func TestEventuallyWithTTrue(t *testing.T) { |
| 2798 | mockT := new(errorsCapturingT) |
| 2799 | |
| 2800 | state := 0 |
| 2801 | condition := func(collect *CollectT) { |
| 2802 | defer func() { |
| 2803 | state += 1 |
| 2804 | }() |
| 2805 | True(collect, state == 2) |
| 2806 | } |
| 2807 | |
| 2808 | True(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, 20*time.Millisecond)) |
| 2809 | Len(t, mockT.errors, 0) |
| 2810 | } |
| 2811 | |
| 2812 | func TestEventuallyWithT_ConcurrencySafe(t *testing.T) { |
| 2813 | mockT := new(errorsCapturingT) |
nothing calls this directly
no test coverage detected
searching dependent graphs…