WIP:refactor: Refined channel-states, introduced `ChannelState` -- ALIGN rebase--2024-03-05--09-07
authorKai Moritz <kai@juplo.de>
Mon, 4 Mar 2024 14:53:39 +0000 (15:53 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 4 Mar 2024 14:53:39 +0000 (15:53 +0100)
src/test/java/de/juplo/kafka/chat/backend/KafkaConfigurationIT.java

index 86cfa30..47ddb06 100644 (file)
@@ -2,6 +2,7 @@ package de.juplo.kafka.chat.backend;
 
 import de.juplo.kafka.chat.backend.implementation.kafka.*;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.kafka.clients.consumer.Consumer;
 import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.BeforeAll;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -54,9 +55,13 @@ class KafkaConfigurationIT extends AbstractConfigurationWithShardingIT
 
   @AfterAll
   static void joinConsumerTasks(
+      @Autowired Consumer dataChannelConsumer,
+      @Autowired Consumer infoChannelConsumer,
       @Autowired ChannelTaskRunner channelTaskRunner)
       throws InterruptedException
   {
+    dataChannelConsumer.wakeup();
+    infoChannelConsumer.wakeup();
     channelTaskRunner.joinChannels();
   }