Files
kandev/apps/backend/internal/delivery/testmain_test.go
T
2026-08-28 21:48:44 +00:00

18 lines
515 B
Go

package delivery
import (
"testing"
"go.uber.org/goleak"
)
// TestMain wraps internal/delivery's test suite in goleak so Sweep.Start's
// background loop goroutine is verified to drain on Stop, following the
// same convention as internal/gateway/websocket, internal/agentctl/server/
// process, and the runtime lifecycle package (Review round 2, finding #4;
// docs/plans/task-delivery-ledger/task-06-sweep-and-health.md commits to
// this coverage).
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}