WIP:ALIGN
authorKai Moritz <kai@juplo.de>
Thu, 14 Sep 2023 23:14:52 +0000 (01:14 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 14 Sep 2023 23:14:52 +0000 (01:14 +0200)
src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java

index 577355e..1a6948f 100644 (file)
@@ -59,13 +59,14 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest
   static class KafkaChatHomeTestConfiguration
   {
     @Bean
-    ConsumerTaskExecutor.WorkAssignor workAssignor()
+    ConsumerTaskExecutor.WorkAssignor workAssignor(DataChannel dataChannel)
     {
       return consumer ->
       {
         List<TopicPartition> assignedPartitions =
             List.of(new TopicPartition(DATA_TOPIC, 2));
         consumer.assign(assignedPartitions);
+        dataChannel.onPartitionsAssigned(assignedPartitions);
       };
     }