From 62d39c4bd53c0b3866380b3b54dda35a5d03b4bf Mon Sep 17 00:00:00 2001 From: BornChanger Date: Tue, 31 Jan 2023 22:25:39 +0800 Subject: [PATCH] *: fix case Signed-off-by: BornChanger --- ddl/resource_group_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ddl/resource_group_test.go b/ddl/resource_group_test.go index 5f70d148a234d..749e5f2f1c2e8 100644 --- a/ddl/resource_group_test.go +++ b/ddl/resource_group_test.go @@ -88,7 +88,8 @@ func TestResourceGroupBasic(t *testing.T) { re.Equal(uint64(2000), g.RURate) re.Equal(int64(-1), g.BurstLimit) - tk.MustQuery("select * from information_schema.resource_groups where group_name = 'x'").Check(testkit.Rows("x RU_MODE 2000 0 3000 0 ")) + tk.MustQuery("select * from information_schema.resource_groups where name = 'x'").Check(testkit.Rows("x RU_MODE 2000 0 3000 0 ")) + tk.MustExec("drop resource group x") g = testResourceGroupNameFromIS(t, tk.Session(), "x") re.Nil(g) @@ -142,7 +143,7 @@ func TestResourceGroupBasic(t *testing.T) { tk.MustExec("create resource group y " + "RRU_PER_SEC=2000 " + "WRU_PER_SEC=3000") - tk.MustQuery("select * from information_schema.resource_groups where group_name = 'y'").Check(testkit.Rows("y RU_MODE 2000 0 3000 0 ")) + tk.MustQuery("select * from information_schema.resource_groups where name = 'y'").Check(testkit.Rows("y RU_MODE 2000 0 3000 0 ")) tk.MustQuery("show create resource group y").Check(testkit.Rows("y CREATE RESOURCE GROUP `y` RRU_PER_SEC=2000 WRU_PER_SEC=3000")) tk.MustExec("alter resource group y RU_PER_SEC=4000") @@ -161,7 +162,7 @@ func TestResourceGroupBasic(t *testing.T) { "CPU='4000m' " + "IO_READ_BANDWIDTH='1G' " + "IO_WRITE_BANDWIDTH='300M'") - tk.MustQuery("select * from information_schema.resource_groups where group_name = 'z'").Check(testkit.Rows("z RAW_MODE 4000 1000000000 300000000")) + tk.MustQuery("select * from information_schema.resource_groups where name = 'z'").Check(testkit.Rows("z RAW_MODE 4000 1000000000 300000000")) tk.MustQuery("show create resource group z").Check(testkit.Rows("z CREATE RESOURCE GROUP `z` CPU=\"4000m\" IO_READ_BANDWIDTH=\"1G\" IO_WRITE_BANDWIDTH=\"300M\"")) */