(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestCheckpoint_CompleteTwice(t *testing.T) { |
| 25 | t.Parallel() |
| 26 | logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}) |
| 27 | ctx := testutil.Context(t, testutil.WaitShort) |
| 28 | uut := newCheckpoint(logger) |
| 29 | err := xerrors.New("test") |
| 30 | uut.complete(err) |
| 31 | uut.complete(nil) // drops CRITICAL log |
| 32 | got := uut.wait(ctx) |
| 33 | require.Equal(t, err, got) |
| 34 | } |
| 35 | |
| 36 | func TestCheckpoint_WaitComplete(t *testing.T) { |
| 37 | t.Parallel() |