(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestFuture_WaitCtx(t *testing.T) { |
| 68 | f := New() |
| 69 | ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond) |
| 70 | defer cancel() |
| 71 | _, err := f.GetContext(ctx) |
| 72 | if !errors.Is(err, context.DeadlineExceeded) { |
| 73 | t.Fatal("context is not cancelled") |
| 74 | } |
| 75 | } |
nothing calls this directly
no test coverage detected