Skip to content

Commit

Permalink
*: fix goleak in the test (pingcap#41339)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored and blacktear23 committed Feb 15, 2023
1 parent 4e5d6ab commit f91ca6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TestMain(m *testing.M) {
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
goleak.IgnoreTopFunction("syscall.syscall"),
}
goleak.VerifyTestMain(m, opts...)
}
1 change: 1 addition & 0 deletions telemetry/cte_test/cte_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func TestMain(m *testing.M) {
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
goleak.IgnoreTopFunction("syscall.syscall"),
}

goleak.VerifyTestMain(m, opts...)
Expand Down

0 comments on commit f91ca6c

Please sign in to comment.