(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestWaitBuffer_WaitFor_ContextExpired(t *testing.T) { |
| 50 | t.Parallel() |
| 51 | |
| 52 | ctx, cancel := context.WithCancel(context.Background()) |
| 53 | cancel() // Already expired. |
| 54 | |
| 55 | wb := testutil.NewWaitBuffer() |
| 56 | err := wb.WaitFor(ctx, "never") |
| 57 | require.ErrorIs(t, err, context.Canceled) |
| 58 | } |
| 59 | |
| 60 | func TestWaitBuffer_WaitFor_MultipleWrites(t *testing.T) { |
| 61 | t.Parallel() |
nothing calls this directly
no test coverage detected