projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26600a6
)
Racecondition in Test korrigiert
author
Kai Moritz
<kai@juplo.de>
Wed, 25 Sep 2024 20:34:29 +0000
(22:34 +0200)
committer
Kai Moritz
<kai@juplo.de>
Thu, 26 Sep 2024 08:42:01 +0000
(10:42 +0200)
src/test/java/de/juplo/kafka/ApplicationTests.java
patch
|
blob
|
history
diff --git
a/src/test/java/de/juplo/kafka/ApplicationTests.java
b/src/test/java/de/juplo/kafka/ApplicationTests.java
index
646a335
..
50bc20b
100644
(file)
--- a/
src/test/java/de/juplo/kafka/ApplicationTests.java
+++ b/
src/test/java/de/juplo/kafka/ApplicationTests.java
@@
-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)