Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe0b4e4

Browse files
committed
Add leak detection to dbkeycache tests
1 parent ea659b0 commit fe0b4e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/cryptokeys/dbkeycache_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/require"
7+
"go.uber.org/goleak"
78

89
"cdr.dev/slog/sloggers/slogtest"
910

@@ -16,6 +17,10 @@ import (
1617
"github.com/coder/quartz"
1718
)
1819

20+
func TestMain(m *testing.M) {
21+
goleak.VerifyTestMain(m)
22+
}
23+
1924
func TestDBKeyCache(t *testing.T) {
2025
t.Parallel()
2126

0 commit comments

Comments
 (0)