Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Dec 8, 2021
1 parent 737e629 commit 81b0905
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions executor/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,16 +366,11 @@ func (s *testSerialSuite1) TestSetVar(c *C) {
tk.MustExec("set @@tidb_expensive_query_time_threshold=70")
tk.MustQuery("select @@tidb_expensive_query_time_threshold;").Check(testkit.Rows("70"))

tk.MustQuery("select @@tidb_store_limit;").Check(testkit.Rows("0"))
tk.MustExec("set @@tidb_store_limit = 100")
tk.MustQuery("select @@tidb_store_limit;").Check(testkit.Rows("100"))
tk.MustQuery("select @@session.tidb_store_limit;").Check(testkit.Rows("100"))
tk.MustQuery("select @@global.tidb_store_limit;").Check(testkit.Rows("0"))
tk.MustExec("set @@tidb_store_limit = 0")

tk.MustExec("set @@global.tidb_store_limit = 100")
tk.MustQuery("select @@global.tidb_store_limit;").Check(testkit.Rows("100"))
tk.MustExec("set @@global.tidb_store_limit = 0")
tk.MustExec("set global tidb_store_limit = 100")
tk.MustQuery("select @@tidb_store_limit;").Check(testkit.Rows("100"))
tk.MustQuery("select @@session.tidb_store_limit;").Check(testkit.Rows("100"))
tk.MustQuery("select @@global.tidb_store_limit;").Check(testkit.Rows("100"))

tk.MustQuery("select @@session.tidb_metric_query_step;").Check(testkit.Rows("60"))
Expand Down

0 comments on commit 81b0905

Please sign in to comment.