Skip to content

Commit

Permalink
executor: enable LFU stats cache for test (#46226)
Browse files Browse the repository at this point in the history
ref #46158
  • Loading branch information
hawkingrei authored Aug 18, 2023
1 parent 6999695 commit 0b2d62b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executor/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

"github.com/pingcap/tidb/config"
"github.com/pingcap/tidb/meta/autoid"
"github.com/pingcap/tidb/sessionctx/variable"
"github.com/pingcap/tidb/testkit/testdata"
"github.com/pingcap/tidb/testkit/testmain"
"github.com/pingcap/tidb/testkit/testsetup"
Expand Down Expand Up @@ -51,6 +52,7 @@ func TestMain(m *testing.M) {
conf.Experimental.AllowsExpressionIndex = true
})
tikv.EnableFailpoints()
variable.StatsCacheMemQuota.Store(5000)

opts := []goleak.Option{
goleak.IgnoreTopFunction("github.com/golang/glog.(*fileSink).flushDaemon"),
Expand Down

0 comments on commit 0b2d62b

Please sign in to comment.