diff --git a/kayenta-core/src/test/groovy/com/netflix/kayenta/metrics/SynchronousQueryProcessorTest.java b/kayenta-core/src/test/groovy/com/netflix/kayenta/metrics/SynchronousQueryProcessorTest.java index 9db75cad8..2d64afbbf 100644 --- a/kayenta-core/src/test/groovy/com/netflix/kayenta/metrics/SynchronousQueryProcessorTest.java +++ b/kayenta-core/src/test/groovy/com/netflix/kayenta/metrics/SynchronousQueryProcessorTest.java @@ -236,7 +236,9 @@ public void retriesNetworkErrorTillMaxAttemptsAndThrowsException() throws IOExce any(CanaryConfig.class), any(CanaryMetricConfig.class), any(CanaryScope.class))) - .thenThrow(new SpinnakerNetworkException(new SocketTimeoutException())); + .thenThrow( + new SpinnakerNetworkException( + RetrofitError.networkError("http://some-url", new SocketTimeoutException()))); assertThatThrownBy( () ->