Files
kandev/apps/backend/internal/plugins/state/goleak_test.go
T
2026-08-05 19:02:29 +01:00

16 lines
410 B
Go

package state
import (
"testing"
"go.uber.org/goleak"
)
// TestMain asserts that no goroutines from this package outlive the test
// process. TestUserStorePostgresConditionalWriteIsRaceFreeUnderConcurrency
// races writers across goroutines it must join before returning — goleak
// catches a regression where one is left running past the test.
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}