Update error messages in job creation tests
This commit is contained in:
parent
591050a8d2
commit
5d17666a69
1 changed files with 2 additions and 2 deletions
|
|
@ -368,7 +368,7 @@ func TestCreateJob(t *testing.T) {
|
|||
}`)),
|
||||
)
|
||||
},
|
||||
wantErr: "failed to create job: some error",
|
||||
wantErr: "failed to create job: 500 Internal Server Error: some error",
|
||||
},
|
||||
{
|
||||
name: "API error",
|
||||
|
|
@ -378,7 +378,7 @@ func TestCreateJob(t *testing.T) {
|
|||
httpmock.StatusStringResponse(500, `{}`),
|
||||
)
|
||||
},
|
||||
wantErr: "failed to create job: 500 Internal Server Error",
|
||||
wantErr: "failed to create job: 500 Internal Server Error: ",
|
||||
},
|
||||
{
|
||||
name: "invalid JSON response, non-HTTP 200",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue