store: fix goleak for syscall (#50142)

close pingcap/tidb#50141
This commit is contained in:
Weizhen Wang
2024-01-05 22:01:52 +08:00
committed by GitHub
parent 64741e9710
commit 6bff4aaa1f

View File

@ -24,6 +24,7 @@ import (
func TestMain(m *testing.M) {
testsetup.SetupForCommonTest()
opts := []goleak.Option{
goleak.IgnoreTopFunction("syscall.Syscall"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
goleak.IgnoreTopFunction("github.com/bazelbuild/rules_go/go/tools/bzltestutil.RegisterTimeoutHandler.func1"),
goleak.IgnoreTopFunction("github.com/lestrrat-go/httprc.runFetchWorker"),