Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Dec 8, 2023
1 parent 1c071d3 commit cf1ec4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cli/cluster/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down Expand Up @@ -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,
},
}
Expand Down

0 comments on commit cf1ec4b

Please sign in to comment.