diff --git a/tsdb/db_test.go b/tsdb/db_test.go index 35b5977d85..12acba8b9d 100644 --- a/tsdb/db_test.go +++ b/tsdb/db_test.go @@ -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"), ) } diff --git a/util/testutil/testing.go b/util/testutil/testing.go index c455bbdbe9..86540d8e83 100644 --- a/util/testutil/testing.go +++ b/util/testutil/testing.go @@ -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"), ) }