Skip to content

Commit

Permalink
ddltest: update goleak and enable race (#40357)
Browse files Browse the repository at this point in the history
close #40358
  • Loading branch information
hawkingrei authored Jan 6, 2023
1 parent e1a2b58 commit 88842fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ddltest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ go_test(
"random_test.go",
],
flaky = True,
race = "on",
deps = [
"//config",
"//domain",
Expand Down
1 change: 1 addition & 0 deletions cmd/ddltest/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

0 comments on commit 88842fa

Please sign in to comment.