Skip to content

Commit

Permalink
*: adjust case
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <dawn_catcher@126.com>
  • Loading branch information
BornChanger committed Jan 18, 2023
1 parent 5847cc1 commit 8195d50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ddl/resource_group_test.go
Expand Up @@ -156,6 +156,7 @@ func TestResourceGroupBasic(t *testing.T) {
tk.MustQuery("select * from information_schema.resource_groups where group_name = 'y'").Check(testkit.Rows(strconv.FormatInt(g2.ID, 10) + " y 4000 2000"))
tk.MustQuery("show create resource group y").Check(testkit.Rows("y CREATE RESOURCE GROUP `y` RRU_PER_SEC=4000 WRU_PER_SEC=2000"))

tk.MustQuery("select count(*) from information_schema.resource_groups").Check(testkit.Rows("2"))
tk.MustGetErrCode("create user usr_fail resource group nil_group", mysql.ErrResourceGroupNotExists)
tk.MustExec("create user user2")
tk.MustGetErrCode("alter user user2 resource group nil_group", mysql.ErrResourceGroupNotExists)
Expand Down

0 comments on commit 8195d50

Please sign in to comment.