(t *testing.T)
| 192 | } |
| 193 | |
| 194 | func TestWaitBuffer_WaitForNth_AlreadySatisfied(t *testing.T) { |
| 195 | t.Parallel() |
| 196 | ctx := testutil.Context(t, testutil.WaitShort) |
| 197 | |
| 198 | wb := testutil.NewWaitBuffer() |
| 199 | _, err := wb.Write([]byte("Foo Foo Foo")) |
| 200 | require.NoError(t, err) |
| 201 | |
| 202 | // All three occurrences already present. |
| 203 | require.NoError(t, wb.WaitForNth(ctx, "Foo", 3)) |
| 204 | } |
| 205 | |
| 206 | func TestWaitBuffer_RequireWaitFor_Timeout(t *testing.T) { |
| 207 | t.Parallel() |
nothing calls this directly
no test coverage detected