Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lzmhhh123 committed Apr 26, 2020
1 parent 7522252 commit 2143a2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tidb-server/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 2143a2d

Please sign in to comment.