Skip to content

Commit

Permalink
test(clouddriver): Modified the wrapper exception from generic Retrof…
Browse files Browse the repository at this point in the history
…itError to more specific Retrofit network error
  • Loading branch information
Pranav-b-7 committed Nov 5, 2023
1 parent 5d2d11e commit ad810fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class TriggerQuipTaskSpec extends Specification {

then:
2 * instanceService.getCurrentVersion(app) >> {
throw new SpinnakerNetworkException(new RetrofitError(null, null, null, null, null, null, null))
throw new SpinnakerNetworkException(RetrofitError.networkError('http://foo', new IOException('failed')))
} >> mkResponse([version: patchVersion])

result.context.skippedInstances.keySet() == ["i-1234"] as Set
Expand Down

0 comments on commit ad810fa

Please sign in to comment.