diff --git a/cmd/metal-api/internal/service/image-service_test.go b/cmd/metal-api/internal/service/image-service_test.go index 478fc9a13..48093927a 100644 --- a/cmd/metal-api/internal/service/image-service_test.go +++ b/cmd/metal-api/internal/service/image-service_test.go @@ -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"