Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: ailinkid <314806019@qq.com>
  • Loading branch information
AilinKid committed Jul 19, 2021
1 parent 8d0dcdc commit a17fe78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/infoschema_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ func (s *testInfoschemaClusterTableSuite) TestTableStorageStats(c *C) {
defer tk1.MustExec("drop user 'testuser3'@'localhost'")

tk.MustExec("grant all privileges on *.* to 'testuser2'@'localhost'")
tk.MustExec("grant select on *.* to 'testuser3'@'localhost'")
c.Assert(tk.Se.Auth(&auth.UserIdentity{
Username: "testuser",
Hostname: "localhost",
Expand All @@ -946,7 +947,7 @@ func (s *testInfoschemaClusterTableSuite) TestTableStorageStats(c *C) {
Hostname: "localhost",
}, nil, nil), Equals, true)

tk.MustQuery("select count(1) from information_schema.TABLE_STORAGE_STATS where TABLE_SCHEMA = 'mysql'").Check(testkit.Rows("0"))
tk.MustQuery("select count(1) from information_schema.TABLE_STORAGE_STATS where TABLE_SCHEMA = 'mysql'").Check(testkit.Rows("24"))
}

func (s *testInfoschemaTableSuite) TestSequences(c *C) {
Expand Down

0 comments on commit a17fe78

Please sign in to comment.