From 0a7e2639ac4b165a30ce434fd178c28b82ac936e Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Fri, 6 Jan 2023 11:17:23 +0800 Subject: [PATCH] ddltest: update goleak and enable race Signed-off-by: Weizhen Wang --- cmd/ddltest/BUILD.bazel | 1 + cmd/ddltest/main_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/ddltest/BUILD.bazel b/cmd/ddltest/BUILD.bazel index 344d46dac3cad..39ac3c9bdb7b4 100644 --- a/cmd/ddltest/BUILD.bazel +++ b/cmd/ddltest/BUILD.bazel @@ -11,6 +11,7 @@ go_test( "random_test.go", ], flaky = True, + race = "on", deps = [ "//config", "//domain", diff --git a/cmd/ddltest/main_test.go b/cmd/ddltest/main_test.go index 7f6815d4f6340..d0ca25b750a14 100644 --- a/cmd/ddltest/main_test.go +++ b/cmd/ddltest/main_test.go @@ -41,6 +41,7 @@ func TestMain(m *testing.M) { goleak.IgnoreTopFunction("net/http.(*persistConn).writeLoop"), goleak.IgnoreTopFunction("github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1"), goleak.IgnoreTopFunction("database/sql.(*DB).connectionOpener"), + goleak.IgnoreTopFunction("go.etcd.io/etcd/client/v3.waitRetryBackoff"), } goleak.VerifyTestMain(m, opts...) }