Tests: Geprüft, dass der Fehler nach einem Neustart neu vorliegt
authorKai Moritz <kai@juplo.de>
Mon, 11 Apr 2022 14:19:44 +0000 (16:19 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 11 Apr 2022 14:19:44 +0000 (16:19 +0200)
src/test/java/de/juplo/kafka/ApplicationTests.java

index 994d657..6f58180 100644 (file)
@@ -110,6 +110,14 @@ class ApplicationTests
 
                checkSeenOffsetsForProgress();
                compareToCommitedOffsets(newOffsets);
+
+               endlessConsumer.start();
+               await("Consumer failed")
+                               .atMost(Duration.ofSeconds(30))
+                               .until(() -> !endlessConsumer.running());
+
+               checkSeenOffsetsForProgress();
+               compareToCommitedOffsets(newOffsets);
        }