From 0b2d62bcf6f32ba7520cc284375490203c4c41de Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Fri, 18 Aug 2023 21:56:01 +0800 Subject: [PATCH] executor: enable LFU stats cache for test (#46226) ref pingcap/tidb#46158 --- executor/main_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/executor/main_test.go b/executor/main_test.go index 3749e2e273152..4e1e3fedf1f83 100644 --- a/executor/main_test.go +++ b/executor/main_test.go @@ -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" @@ -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"),