Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Aug 1, 2023
1 parent 1f05957 commit 9e69d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metal-api/internal/service/image-service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func TestCreateImageWithBrokenURL(t *testing.T) {
var result httperrors.HTTPErrorResponse
err = json.NewDecoder(resp.Body).Decode(&result)
require.NoError(t, err)
require.True(t, strings.Contains(result.Message, "no such host"))
require.True(t, strings.Contains(result.Message, "is not accessible under"))

createRequest.URL = "http://images.metal-stack.io/this-file-does-not-exist"

Expand Down

0 comments on commit 9e69d20

Please sign in to comment.