Springify: Der Consumer kann unterschiedliche Nachrichten-Typen empfangen
[demos/kafka/training] / src / test / java / de / juplo / kafka / ApplicationTests.java
index 43a4f61..8a485b3 100644 (file)
@@ -63,8 +63,6 @@ class ApplicationTests
        @Autowired
        KafkaProducer<String, Bytes> kafkaProducer;
        @Autowired
-       org.apache.kafka.clients.consumer.Consumer<String, ClientMessage> kafkaConsumer;
-       @Autowired
        KafkaConsumer<Bytes, Bytes> offsetConsumer;
        @Autowired
        ApplicationProperties applicationProperties;
@@ -153,6 +151,7 @@ class ApplicationTests
 
                await("Offsets committed")
                                .atMost(Duration.ofSeconds(10))
+                               .pollDelay(Duration.ofSeconds(1))
                                .untilAsserted(() ->
                                {
                                        checkSeenOffsetsForProgress();