Skip to content

Commit

Permalink
importintotest: fix goleak on opencensus (#45092)
Browse files Browse the repository at this point in the history
close #45091
  • Loading branch information
hawkingrei authored Jun 30, 2023
1 parent b9b7cad commit 0d9541d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/realtikvtest/testkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func RunTestMain(m *testing.M) {
goleak.IgnoreTopFunction("internal/poll.runtime_pollWait"),
goleak.IgnoreTopFunction("net/http.(*persistConn).writeLoop"),
goleak.IgnoreTopFunction("github.com/tikv/client-go/v2/txnkv/transaction.keepAlive"),
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
}
callback := func(i int) int {
// wait for MVCCLevelDB to close, MVCCLevelDB will be closed in one second
Expand Down

0 comments on commit 0d9541d

Please sign in to comment.