From 965c9882c59370204dbdc7f19a7d0d0785a121cf Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Mon, 11 Sep 2023 12:22:23 +0800 Subject: [PATCH 1/2] sem: fix goleak Signed-off-by: Weizhen Wang --- util/sem/main_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util/sem/main_test.go b/util/sem/main_test.go index 64ba584bbe162..51f622233ed16 100644 --- a/util/sem/main_test.go +++ b/util/sem/main_test.go @@ -27,6 +27,7 @@ func TestMain(m *testing.M) { goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"), 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.VerifyTestMain(m, opts...) } From 039be207c8cf0426ab86a1c663b01c741c8cd552 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Mon, 11 Sep 2023 12:27:43 +0800 Subject: [PATCH 2/2] sem: fix goleak Signed-off-by: Weizhen Wang --- ddl/tests/adminpause/pause_cancel_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddl/tests/adminpause/pause_cancel_test.go b/ddl/tests/adminpause/pause_cancel_test.go index 3ac8851554840..4caac3ce45be5 100644 --- a/ddl/tests/adminpause/pause_cancel_test.go +++ b/ddl/tests/adminpause/pause_cancel_test.go @@ -208,7 +208,7 @@ func TestPauseCancelAndRerunIndexStmt(t *testing.T) { func TestPauseCancelAndRerunColumnStmt(t *testing.T) { var dom, stmtKit, adminCommandKit = prepareDomain(t) - require.Nil(t, generateTblUser(stmtKit, 500)) + require.Nil(t, generateTblUser(stmtKit, 200)) for _, stmtCase := range columnDDLStmtCase { pauseAndCancelStmt(t, stmtKit, adminCommandKit, dom, &stmtCase)