Update goleak for change in glog

Evidently the internal type changed.
This commit is contained in:
Bryan Boreham 2023-06-30 15:10:54 +00:00
parent 34e7d9d997
commit 013fdb9460
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ func TestMain(m *testing.M) {
// Ignore "ristretto" and its dependency "glog".
goleak.IgnoreTopFunction("github.com/dgraph-io/ristretto.(*defaultPolicy).processItems"),
goleak.IgnoreTopFunction("github.com/dgraph-io/ristretto.(*Cache).processItems"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
)
}

View file

@ -43,6 +43,6 @@ func TolerantVerifyLeak(m *testing.M) {
// Ignore "ristretto" and its dependency "glog".
goleak.IgnoreTopFunction("github.com/dgraph-io/ristretto.(*defaultPolicy).processItems"),
goleak.IgnoreTopFunction("github.com/dgraph-io/ristretto.(*Cache).processItems"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"),
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
)
}