Racecondition in Test korrigiert
authorKai Moritz <kai@juplo.de>
Wed, 25 Sep 2024 20:34:29 +0000 (22:34 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 26 Sep 2024 08:42:01 +0000 (10:42 +0200)
src/test/java/de/juplo/kafka/ApplicationTests.java

index 646a335..50bc20b 100644 (file)
@@ -27,6 +27,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
                properties = {
                                "spring.kafka.consumer.bootstrap-servers=${spring.embedded.kafka.brokers}",
                                "producer.bootstrap-server=${spring.embedded.kafka.brokers}",
+                               "spring.kafka.consumer.auto-offset-reset=earliest",
                                "producer.topic=" + TOPIC})
 @AutoConfigureMockMvc
 @EmbeddedKafka(topics = TOPIC, partitions = PARTITIONS)