diff --git a/executor/simple_test.go b/executor/simple_test.go index a188be1ad7d6c..4eb355778b954 100644 --- a/executor/simple_test.go +++ b/executor/simple_test.go @@ -129,6 +129,7 @@ func TestUserAttributes(t *testing.T) { rootTK.MustExec("alter user usr1 comment 'comment1'") rootTK.MustQuery("select user_attributes from mysql.user where user = 'usr1'").Check(testkit.Rows(`{"metadata": {"comment": "comment1"}, "resource_group": "default"}`)) rootTK.MustExec("set global tidb_enable_resource_control = 'on'") + rootTK.MustExec("CREATE RESOURCE GROUP rg1 rru_per_sec = 100 wru_per_sec = 200") rootTK.MustExec("alter user usr1 resource group rg1") rootTK.MustQuery("select user_attributes from mysql.user where user = 'usr1'").Check(testkit.Rows(`{"metadata": {"comment": "comment1"}, "resource_group": "rg1"}`)) }