(t *testing.T)
| 411 | } |
| 412 | |
| 413 | func TestSendProcess_FullBufferUnblocksOnCancel(t *testing.T) { |
| 414 | ctx, cancel := context.WithCancel(context.Background()) |
| 415 | pool := newTestBasePool(ctx, cancel) |
| 416 | |
| 417 | for i := 0; i < cap(pool.processCh); i++ { |
| 418 | pool.processCh <- newTestBaseline() |
| 419 | } |
| 420 | |
| 421 | mustFinish(t, 2*time.Second, "sendProcess on full buffer not unblocked by cancel", func() { |
| 422 | go func() { |
| 423 | time.Sleep(50 * time.Millisecond) |
| 424 | cancel() |
| 425 | }() |
| 426 | pool.sendProcess(newTestBaseline()) |
| 427 | }) |
| 428 | } |
| 429 | |
| 430 | func TestSendProcess_ConcurrentShutdown(t *testing.T) { |
| 431 | ctx, cancel := context.WithCancel(context.Background()) |
nothing calls this directly
no test coverage detected