Skip to content

Commit

Permalink
fix test case for troubleshoot link
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Jun 15, 2023
1 parent 48d57c5 commit 574741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi/commando_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func Test_main(t *testing.T) {
args = []string{"ecs", "DescribeRegions"}
err = command.main(ctx, args)
assert.NotNil(t, err)
assert.True(t, strings.Contains(err.Error(), "SDK.ServerError\nErrorCode: InvalidAction.NotFound\nRecommend: https://next.api.aliyun.com/troubleshoot?q=InvalidAction.NotFound&product=Ecs\nRequestId:"))
assert.True(t, strings.Contains(err.Error(), "SDK.ServerError\nErrorCode: InvalidAction.NotFound\nRecommend: https://api.aliyun.com/troubleshoot?q=InvalidAction.NotFound&product=Ecs\nRequestId:"))

ctx.Flags().Get("force").SetAssigned(false)
ctx.Flags().Get("version").SetAssigned(false)
Expand Down

0 comments on commit 574741d

Please sign in to comment.