From 5a5cfe486284e2d751543271a37d4da0b50dd635 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 15 Sep 2023 01:14:52 +0200 Subject: [PATCH] WIP:ALIGN --- .../backend/implementation/kafka/KafkaChatHomeServiceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java b/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java index 577355e5..1a6948fa 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java +++ b/src/test/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeServiceTest.java @@ -59,13 +59,14 @@ public class KafkaChatHomeServiceTest extends ChatHomeServiceWithShardsTest static class KafkaChatHomeTestConfiguration { @Bean - ConsumerTaskExecutor.WorkAssignor workAssignor() + ConsumerTaskExecutor.WorkAssignor workAssignor(DataChannel dataChannel) { return consumer -> { List assignedPartitions = List.of(new TopicPartition(DATA_TOPIC, 2)); consumer.assign(assignedPartitions); + dataChannel.onPartitionsAssigned(assignedPartitions); }; } -- 2.20.1