From 8cd88251517e90701df91b636d66ac8a388b4233 Mon Sep 17 00:00:00 2001 From: lhy1024 Date: Thu, 29 Aug 2024 17:57:38 +0800 Subject: [PATCH] address comments Signed-off-by: lhy1024 --- tools/pd-ctl/tests/config/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pd-ctl/tests/config/config_test.go b/tools/pd-ctl/tests/config/config_test.go index d088b27702d..cf93cb9dc8c 100644 --- a/tools/pd-ctl/tests/config/config_test.go +++ b/tools/pd-ctl/tests/config/config_test.go @@ -357,7 +357,7 @@ func (suite *configTestSuite) checkConfig(cluster *pdTests.TestCluster) { re.Contains(string(output), "patrol-region-worker-count should be between 1 and 8") re.Equal(8, svr.GetScheduleConfig().PatrolRegionWorkerCount) args = []string{"-u", pdAddr, "config", "set", "patrol-region-worker-count", "0"} - _, err = tests.ExecuteCommand(cmd, args...) + output, err = tests.ExecuteCommand(cmd, args...) re.NoError(err) re.Contains(string(output), "patrol-region-worker-count should be between 1 and 8") re.Equal(8, svr.GetScheduleConfig().PatrolRegionWorkerCount)