diff --git a/src/main/java/com/rbkmoney/threeds/server/storage/client/ThreeDsServerClient.java b/src/main/java/com/rbkmoney/threeds/server/storage/client/ThreeDsServerClient.java index b1a1d2f..fc28ed1 100644 --- a/src/main/java/com/rbkmoney/threeds/server/storage/client/ThreeDsServerClient.java +++ b/src/main/java/com/rbkmoney/threeds/server/storage/client/ThreeDsServerClient.java @@ -8,10 +8,7 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.ResponseEntity; -import org.springframework.retry.annotation.Backoff; -import org.springframework.retry.annotation.Retryable; import org.springframework.stereotype.Service; -import org.springframework.web.client.RestClientResponseException; import org.springframework.web.client.RestTemplate; @Slf4j @@ -24,13 +21,13 @@ public class ThreeDsServerClient { @Value("${client.three-ds-server.url}") private String url; - @Retryable( - value = { - RestClientResponseException.class, - MessageTypeException.class - }, - backoff = @Backoff(delayExpression = "#{${client.retry.delay-ms}}"), - maxAttemptsExpression = "#{${client.retry.max-attempts}}") + // @Retryable( +// value = { +// RestClientResponseException.class, +// MessageTypeException.class +// }, +// backoff = @Backoff(delayExpression = "#{${client.retry.delay-ms}}"), +// maxAttemptsExpression = "#{${client.retry.max-attempts}}") public RBKMoneyPreparationResponse preparationFlow(RBKMoneyPreparationRequest request) { log.info("Request: {}", request); diff --git a/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java b/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java index 32adf24..64b48ac 100644 --- a/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java +++ b/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java @@ -67,7 +67,7 @@ public class PreparationFlowServiceTest extends AbstractDaoConfig { assertThat(cardRanges).hasSize(20); } - @Test + // @Test public void shouldRetryOnException() throws IOException { /* Given: - first stub will answer with 500 status code