Skip to content
Prev Previous commit
Next Next commit
chore(support): add goleak detection
  • Loading branch information
johnstcn committed Mar 14, 2024
commit bef4023699c904be9af51a16a14b62c0636c7d5d
5 changes: 5 additions & 0 deletions support/support_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"

"cdr.dev/slog"
"cdr.dev/slog/sloggers/sloghuman"
Expand All @@ -25,6 +26,10 @@ import (
"github.com/coder/coder/v2/testutil"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
}

func TestRun(t *testing.T) {
t.Parallel()

Expand Down