WIP
authorKai Moritz <kai@juplo.de>
Sun, 20 Aug 2023 09:14:37 +0000 (11:14 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 20 Aug 2023 09:14:37 +0000 (11:14 +0200)
src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java

index f25feb6..f6a3607 100644 (file)
@@ -53,6 +53,7 @@ class KafkaConfigurationIT extends AbstractConfigurationWithShardingIT
   {
     List<TopicPartition> assignedPartitions = List.of(new TopicPartition(TOPIC, 2));
     chatRoomChannelConsumer.assign(assignedPartitions);
+    chatRoomChannel.onPartitionsAssigned(assignedPartitions);
     CONSUMER_JOB = taskExecutor
         .submitCompletable(chatRoomChannel)
         .exceptionally(e ->
@@ -60,7 +61,6 @@ class KafkaConfigurationIT extends AbstractConfigurationWithShardingIT
           log.error("The consumer for the ChatRoomChannel exited abnormally!", e);
           return null;
         });
-    chatRoomChannel.onPartitionsAssigned(assignedPartitions);
   }
 
   @BeforeAll