Skip to content

Commit 0c1927a

Browse files
committed
*: fix goleak in the test
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
1 parent 1d452a9 commit 0c1927a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func TestMain(m *testing.M) {
2828
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
2929
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
3030
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
31+
goleak.IgnoreTopFunction("syscall.syscall"),
3132
}
3233
goleak.VerifyTestMain(m, opts...)
3334
}

telemetry/cte_test/cte_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestMain(m *testing.M) {
4040
goleak.IgnoreTopFunction("go.etcd.io/etcd/client/pkg/v3/logutil.(*MergeLogger).outputLoop"),
4141
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
4242
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),
43+
goleak.IgnoreTopFunction("syscall.syscall"),
4344
}
4445

4546
goleak.VerifyTestMain(m, opts...)

0 commit comments

Comments
 (0)