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 Feb 13, 2023
1 parent 5f61ded commit 91265a4
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 91265a4

Please sign in to comment.