(t *testing.T)
| 3438 | } |
| 3439 | |
| 3440 | func TestEventuallyWithT_ConcurrencySafe(t *testing.T) { |
| 3441 | t.Parallel() |
| 3442 | |
| 3443 | mockT := new(errorsCapturingT) |
| 3444 | |
| 3445 | condition := func(collect *CollectT) { |
| 3446 | Fail(collect, "condition fixed failure") |
| 3447 | } |
| 3448 | |
| 3449 | // To trigger race conditions, we run EventuallyWithT with a nanosecond tick. |
| 3450 | False(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, time.Nanosecond)) |
| 3451 | Len(t, mockT.errors, 2) |
| 3452 | } |
| 3453 | |
| 3454 | func TestEventuallyWithT_ReturnsTheLatestFinishedConditionErrors(t *testing.T) { |
| 3455 | t.Parallel() |
nothing calls this directly
no test coverage detected