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

Skip to content

Commit 21a8efe

Browse files
committed
Add goleak
1 parent 57ef616 commit 21a8efe

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pty/start_other_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ import (
88
"testing"
99

1010
"github.com/coder/coder/pty/ptytest"
11+
"go.uber.org/goleak"
1112
)
1213

14+
func TestMain(m *testing.M) {
15+
goleak.VerifyTestMain(m)
16+
}
17+
1318
func TestStart(t *testing.T) {
1419
t.Parallel()
1520
t.Run("Echo", func(t *testing.T) {

pty/start_windows_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"testing"
99

1010
"github.com/coder/coder/pty/ptytest"
11+
"go.uber.org/goleak"
1112
)
1213

1314
func TestMain(m *testing.M) {

0 commit comments

Comments
 (0)