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 2d64afbbf..02c449d39 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 @@ -26,7 +26,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.verifyZeroInteractions; +import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.when; import static org.springframework.http.HttpStatus.BAD_GATEWAY; import static org.springframework.http.HttpStatus.BAD_REQUEST; @@ -118,7 +118,7 @@ public void retriesRetryableHttpSeriesTillMaxAttemptsAndThrowsException() throws any(CanaryConfig.class), any(CanaryMetricConfig.class), any(CanaryScope.class)); - verifyZeroInteractions(storageService); + verifyNoMoreInteractions(storageService); } @Test @@ -198,7 +198,7 @@ public void doesNotRetryNonRetryableHttpStatusAndThrowsException() throws IOExce any(CanaryConfig.class), any(CanaryMetricConfig.class), any(CanaryScope.class)); - verifyZeroInteractions(storageService); + verifyNoMoreInteractions(storageService); } @Test @@ -226,7 +226,7 @@ public void retriesIoExceptionTillMaxAttemptsAndThrowsException() throws IOExcep any(CanaryConfig.class), any(CanaryMetricConfig.class), any(CanaryScope.class)); - verifyZeroInteractions(storageService); + verifyNoMoreInteractions(storageService); } @Test @@ -256,7 +256,7 @@ public void retriesNetworkErrorTillMaxAttemptsAndThrowsException() throws IOExce any(CanaryConfig.class), any(CanaryMetricConfig.class), any(CanaryScope.class)); - verifyZeroInteractions(storageService); + verifyNoMoreInteractions(storageService); } private SpinnakerHttpException getSpinnakerHttpException(int status) {