Skip to content

Commit

Permalink
fix(aws/test): keep up with SpinnakerNetworkException constructor cha…
Browse files Browse the repository at this point in the history
…nges

from spinnaker/kork#1110
  • Loading branch information
dbyron-sf committed Oct 30, 2023
1 parent f01de08 commit 85f7d73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import com.netflix.spinnaker.clouddriver.eureka.api.Eureka
import com.netflix.spinnaker.clouddriver.eureka.deploy.ops.AbstractEurekaSupport.DiscoveryStatus
import com.netflix.spinnaker.credentials.CredentialsRepository
import com.netflix.spinnaker.kork.retrofit.exceptions.SpinnakerNetworkException
import retrofit.RetrofitError
import spock.lang.Shared
import spock.lang.Specification
import spock.lang.Subject
Expand Down Expand Up @@ -210,7 +211,7 @@ class InstanceTerminationLifecycleWorkerSpec extends Specification {

then:
1 * eureka.updateInstanceStatus(_, _, _) >> {
throw new SpinnakerNetworkException(new RuntimeException("cannot connect")) }
throw new SpinnakerNetworkException(RetrofitError.networkError("http://some-url", new IOException("cannot connect"))) }
1 * eureka.updateInstanceStatus(_, _, _)
0 * eureka.updateInstanceStatus(_, _, _)
}
Expand Down

0 comments on commit 85f7d73

Please sign in to comment.