diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-02-15 16:38:39 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-02-15 19:06:50 +0100 |
commit | 88e4d177ebd95613ed87fe7fa9575aad0656056b (patch) | |
tree | 92a746608c3d237509e8aa502c34a70266cc4c43 /client/go/cmd/deploy_test.go | |
parent | 9f2d97647e3813708e929ec2e9d1747454a34bcc (diff) |
Refactor error handling
Diffstat (limited to 'client/go/cmd/deploy_test.go')
-rw-r--r-- | client/go/cmd/deploy_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/go/cmd/deploy_test.go b/client/go/cmd/deploy_test.go index 5bb45e70fad..a37a433397f 100644 --- a/client/go/cmd/deploy_test.go +++ b/client/go/cmd/deploy_test.go @@ -164,7 +164,7 @@ func assertApplicationPackageError(t *testing.T, cmd string, status int, expecte client.NextResponse(status, returnBody) _, outErr := execute(command{args: []string{cmd, "testdata/applications/withTarget/target/application.zip"}}, t, client) assert.Equal(t, - "Error: Invalid application package (Status "+strconv.Itoa(status)+")\n\n"+expectedMessage+"\n", + "Error: invalid application package (Status "+strconv.Itoa(status)+")\n"+expectedMessage+"\n", outErr) } @@ -173,6 +173,6 @@ func assertDeployServerError(t *testing.T, status int, errorMessage string) { client.NextResponse(status, errorMessage) _, outErr := execute(command{args: []string{"deploy", "testdata/applications/withTarget/target/application.zip"}}, t, client) assert.Equal(t, - "Error: Error from deploy service at 127.0.0.1:19071 (Status "+strconv.Itoa(status)+"):\n"+errorMessage+"\n", + "Error: error from deploy service at 127.0.0.1:19071 (Status "+strconv.Itoa(status)+"):\n"+errorMessage+"\n", outErr) } |