From cf1ec4bfeb5de4a8b8f3320b0c8f7909730c5d87 Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Fri, 8 Dec 2023 18:51:27 +0800 Subject: [PATCH] fix test --- internal/cli/cluster/list_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cli/cluster/list_test.go b/internal/cli/cluster/list_test.go index 524909db..e242eef0 100644 --- a/internal/cli/cluster/list_test.go +++ b/internal/cli/cluster/list_test.go @@ -202,17 +202,17 @@ func (suite *ListClusterSuite) TestListClusterArgs() { }{ { name: "list clusters with default format(json when without tty)", - args: []string{projectID}, + args: []string{"--project-id", projectID}, stdoutString: listResultStr, }, { name: "list clusters with output flag", - args: []string{projectID, "--output", "json"}, + args: []string{"--project-id", projectID, "--output", "json"}, stdoutString: listResultStr, }, { name: "list clusters with output shorthand flag", - args: []string{projectID, "-o", "json"}, + args: []string{"--project-id", projectID, "-o", "json"}, stdoutString: listResultStr, }, } @@ -265,7 +265,7 @@ func (suite *ListClusterSuite) TestListClusterWithMultiPages() { }{ { name: "query with multi pages", - args: []string{projectID, "--output", "json"}, + args: []string{"--project-id", projectID, "--output", "json"}, stdoutString: listResultMultiPageStr, }, }