From b919353b8a81c69a8136390e7577cc2681552442 Mon Sep 17 00:00:00 2001 From: David Byron Date: Mon, 30 Oct 2023 10:13:05 -0700 Subject: [PATCH] fix(core/test): keep up with SpinnakerNetworkException constructor changes from https://github.com/spinnaker/kork/pull/1110 --- .../kayenta/metrics/SynchronousQueryProcessorTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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( () ->