Skip to content

Commit

Permalink
fix(manifests/tests): keep up with the removal of RetrofitException.n…
Browse files Browse the repository at this point in the history
…etworkError

from spinnaker/kork#1068
  • Loading branch information
dbyron-sf committed Jul 3, 2023
1 parent 82464cd commit 2dea73a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import com.netflix.spinnaker.kork.artifacts.model.Artifact;
import com.netflix.spinnaker.kork.exceptions.SpinnakerException;
import com.netflix.spinnaker.kork.retrofit.exceptions.RetrofitException;
import com.netflix.spinnaker.kork.retrofit.exceptions.SpinnakerHttpException;
import com.netflix.spinnaker.kork.retrofit.exceptions.SpinnakerNetworkException;
import com.netflix.spinnaker.rosco.services.ClouddriverService;
Expand Down Expand Up @@ -66,9 +65,7 @@ public void retries() throws IOException {
try (ArtifactDownloaderImplTest.AutoDeletingFile file = new AutoDeletingFile()) {
when(clouddriverService.fetchArtifact(testArtifact)).thenReturn(mockCall);
when(mockCall.execute())
.thenThrow(
new SpinnakerNetworkException(
RetrofitException.networkError(new IOException("timeout"))))
.thenThrow(new SpinnakerNetworkException(new IOException("timeout")))
.thenReturn(successfulResponse(testContent));
artifactDownloader.downloadArtifactToFile(testArtifact, file.path);

Expand Down

0 comments on commit 2dea73a

Please sign in to comment.