From de99cf629de5ce2eef48568d0ecb734653a83122 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 11 Nov 2024 10:31:25 -0500 Subject: [PATCH] Disable `AsyncCompletableFutureRetryTopicScenarioTests` on CI/CD --- .../AsyncCompletableFutureRetryTopicScenarioTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-kafka/src/test/java/org/springframework/kafka/retrytopic/AsyncCompletableFutureRetryTopicScenarioTests.java b/spring-kafka/src/test/java/org/springframework/kafka/retrytopic/AsyncCompletableFutureRetryTopicScenarioTests.java index b331b98b34..f1b939b638 100644 --- a/spring-kafka/src/test/java/org/springframework/kafka/retrytopic/AsyncCompletableFutureRetryTopicScenarioTests.java +++ b/spring-kafka/src/test/java/org/springframework/kafka/retrytopic/AsyncCompletableFutureRetryTopicScenarioTests.java @@ -27,6 +27,7 @@ import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.common.serialization.StringSerializer; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; @@ -73,6 +74,8 @@ @DirtiesContext @EmbeddedKafka @TestPropertySource(properties = { "five.attempts=5", "kafka.template=customKafkaTemplate"}) +@DisabledIfEnvironmentVariable(named = "GITHUB_ACTION", matches = "true", + disabledReason = "The test is too heavy and rely a lot in the timing.") public class AsyncCompletableFutureRetryTopicScenarioTests { private final static String MAIN_TOPIC_CONTAINER_FACTORY = "kafkaListenerContainerFactory";