Skip to content

Commit eb120b0

Browse files
committed
chore(support): add goleak detection
1 parent 16d54a7 commit eb120b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

support/support_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010

1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
13+
"go.uber.org/goleak"
1314

1415
"cdr.dev/slog"
1516
"cdr.dev/slog/sloggers/sloghuman"
@@ -25,6 +26,10 @@ import (
2526
"github.com/coder/coder/v2/testutil"
2627
)
2728

29+
func TestMain(m *testing.M) {
30+
goleak.VerifyTestMain(m)
31+
}
32+
2833
func TestRun(t *testing.T) {
2934
t.Parallel()
3035

0 commit comments

Comments
 (0)