From 2143a2d650c7572d50607e839bc953efad855f1b Mon Sep 17 00:00:00 2001 From: lzmhhh123 Date: Sun, 26 Apr 2020 13:18:18 +0800 Subject: [PATCH] fix test --- tidb-server/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tidb-server/main_test.go b/tidb-server/main_test.go index f745c7533904e..df9d290460114 100644 --- a/tidb-server/main_test.go +++ b/tidb-server/main_test.go @@ -40,13 +40,13 @@ var _ = Suite(&testMainSuite{}) type testMainSuite struct{} func (t *testMainSuite) TestSetGlobalVars(c *C) { - c.Assert(variable.SysVars[variable.TiDBIsolationReadEngines].Value, Equals, "tikv, tiflash, tidb") + c.Assert(variable.SysVars[variable.TiDBIsolationReadEngines].Value, Equals, "tikv, tiflash") c.Assert(variable.SysVars[variable.TIDBMemQuotaQuery].Value, Equals, "1073741824") - config.GetGlobalConfig().IsolationRead.Engines = []string{"tikv", "tidb"} + config.GetGlobalConfig().IsolationRead.Engines = []string{"tikv"} config.GetGlobalConfig().MemQuotaQuery = 9999999 setGlobalVars() - c.Assert(variable.SysVars[variable.TiDBIsolationReadEngines].Value, Equals, "tikv, tidb") + c.Assert(variable.SysVars[variable.TiDBIsolationReadEngines].Value, Equals, "tikv") c.Assert(variable.SysVars[variable.TIDBMemQuotaQuery].Value, Equals, "9999999") }