From 0c1927ae47e71eb259bd342cd146c7916f1e9fae Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Mon, 13 Feb 2023 15:48:00 +0800 Subject: [PATCH] *: fix goleak in the test Signed-off-by: Weizhen Wang --- config/main_test.go | 1 + telemetry/cte_test/cte_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/config/main_test.go b/config/main_test.go index 3458dc358ad86..9c9d4ac738f72 100644 --- a/config/main_test.go +++ b/config/main_test.go @@ -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...) } diff --git a/telemetry/cte_test/cte_test.go b/telemetry/cte_test/cte_test.go index fac26ddb2f403..a99e8a6bac498 100644 --- a/telemetry/cte_test/cte_test.go +++ b/telemetry/cte_test/cte_test.go @@ -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...)