Skip to content

Commit

Permalink
chore(dependencies): Autobump korkVersion (#999)
Browse files Browse the repository at this point in the history
* chore(dependencies): Autobump korkVersion

* fix(manifests/tests): keep up with the removal of RetrofitException.networkError

from spinnaker/kork#1068

---------

Co-authored-by: root <root@5b63b9f2870c>
Co-authored-by: David Byron <dbyron@salesforce.com>
  • Loading branch information
3 people authored Jul 3, 2023
1 parent 3e1eddd commit f81d187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
korkVersion=7.179.0
korkVersion=7.180.0
org.gradle.parallel=true
spinnakerGradleVersion=8.30.0
targetJava11=true
Expand Down
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 f81d187

Please sign in to comment.