Skip to content

Commit

Permalink
remove goleak
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Aug 4, 2021
1 parent f6b55b2 commit f70c4ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions executor/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,8 @@ import (
"testing"

"github.com/pingcap/tidb/util/testbridge"
"go.uber.org/goleak"
)

var IgnoreFunctions = []goleak.Option{
goleak.IgnoreTopFunction("go.etcd.io/etcd/pkg/logutil.(*MergeLogger).outputLoop"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
goleak.IgnoreTopFunction("testing.runTests.func1.1"),
goleak.IgnoreTopFunction("testing.tRunner.func1"),
}

func TestMain(m *testing.M) {
testbridge.WorkaroundGoCheckFlags()
os.Exit(m.Run())
Expand Down
3 changes: 0 additions & 3 deletions executor/write_concurrent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ import (
"testing"

"github.com/pingcap/tidb/config"
"github.com/pingcap/tidb/executor"
"github.com/pingcap/tidb/testkit"
"go.uber.org/goleak"
)

func TestBatchInsertWithOnDuplicate(t *testing.T) {
t.Parallel()
defer goleak.VerifyNone(t, executor.IgnoreFunctions...)

store, clean := testkit.CreateMockStore(t)
defer clean()
Expand Down

0 comments on commit f70c4ae

Please sign in to comment.