lucasbru commented on code in PR #12749: URL: https://github.com/apache/kafka/pull/12749#discussion_r997333119
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamThreadTest.java: ########## @@ -2927,7 +2927,30 @@ void runOnce() { @Test public void shouldCheckStateUpdater() { + final StreamThread streamThread = setUpThreadWithStateUpdater(StreamsTestUtils.getStreamsConfig()); + final TaskManager taskManager = streamThread.taskManager(); + streamThread.setState(State.STARTING); + + streamThread.runOnce(); + + Mockito.verify(taskManager).checkStateUpdater(Mockito.anyLong(), Mockito.any()); + Mockito.verify(taskManager).process(Mockito.anyInt(), Mockito.any()); + } + + @Test + public void shouldRespectPollTimeInPartitionsAssignedStateWithStateUpdater() { Review Comment: Yes, I will do this. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org