Skip to content

Commit

Permalink
sessionctx/binloginfo: fix goroutine leak in test (pingcap#31964)
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored Jan 26, 2022
1 parent b83dc00 commit 76a9eea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions sessionctx/binloginfo/binloginfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func createBinlogSuite(t *testing.T) (s *binlogSuite, clean func()) {
s.ddl.SetBinlogClient(s.client)

clean = func() {
clientCon.Close()
err = s.ddl.Stop()
require.NoError(t, err)
s.serv.Stop()
Expand Down
2 changes: 0 additions & 2 deletions sessionctx/binloginfo/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import (
func TestMain(m *testing.M) {
testbridge.SetupForCommonTest()
opts := []goleak.Option{
goleak.IgnoreTopFunction("google.golang.org/grpc.(*addrConn).resetTransport"),
goleak.IgnoreTopFunction("google.golang.org/grpc.(*ccBalancerWrapper).watcher"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
goleak.IgnoreTopFunction("go.etcd.io/etcd/pkg/logutil.(*MergeLogger).outputLoop"),
}
Expand Down

0 comments on commit 76a9eea

Please sign in to comment.