Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d17666

Browse files
committed
Update error messages in job creation tests
1 parent 591050a commit 5d17666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/agent-task/capi/job_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func TestCreateJob(t *testing.T) {
368368
}`)),
369369
)
370370
},
371-
wantErr: "failed to create job: some error",
371+
wantErr: "failed to create job: 500 Internal Server Error: some error",
372372
},
373373
{
374374
name: "API error",
@@ -378,7 +378,7 @@ func TestCreateJob(t *testing.T) {
378378
httpmock.StatusStringResponse(500, `{}`),
379379
)
380380
},
381-
wantErr: "failed to create job: 500 Internal Server Error",
381+
wantErr: "failed to create job: 500 Internal Server Error: ",
382382
},
383383
{
384384
name: "invalid JSON response, non-HTTP 200",

0 commit comments

Comments
 (0)