Skip to content

Commit

Permalink
sem: fix goleak (#46845)
Browse files Browse the repository at this point in the history
close #46844
  • Loading branch information
hawkingrei authored Sep 11, 2023
1 parent e76d10a commit e9ef984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/tests/adminpause/pause_cancel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions util/sem/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

0 comments on commit e9ef984

Please sign in to comment.