MCPcopy Create free account
hub / github.com/chainreactors/spray / TestSendProcess_AfterCancel

Function TestSendProcess_AfterCancel

core/pool/pool_test.go:403–411  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

401}
402
403func TestSendProcess_AfterCancel(t *testing.T) {
404 ctx, cancel := context.WithCancel(context.Background())
405 pool := newTestBasePool(ctx, cancel)
406 cancel()
407
408 mustFinish(t, 2*time.Second, "sendProcess blocked after cancel", func() {
409 pool.sendProcess(newTestBaseline())
410 })
411}
412
413func TestSendProcess_FullBufferUnblocksOnCancel(t *testing.T) {
414 ctx, cancel := context.WithCancel(context.Background())

Callers

nothing calls this directly

Calls 4

newTestBasePoolFunction · 0.85
mustFinishFunction · 0.85
newTestBaselineFunction · 0.85
sendProcessMethod · 0.80

Tested by

no test coverage detected