clolov commented on code in PR #13681: URL: https://github.com/apache/kafka/pull/13681#discussion_r1193602799
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/TaskManagerTest.java: ########## @@ -767,20 +770,19 @@ public void shouldAssignMultipleTasksInTasksRegistryWithStateUpdaterEnabled() { final TasksRegistry tasks = Mockito.mock(TasksRegistry.class); final TaskManager taskManager = setUpTaskManager(ProcessingMode.AT_LEAST_ONCE, tasks, true); when(tasks.allTasks()).thenReturn(mkSet(activeTaskToClose)); - activeTaskCreator.closeAndRemoveTaskProducerIfNeeded(activeTaskToClose.id()); - expect(activeTaskCreator.createTasks( - consumer, - mkMap(mkEntry(activeTaskToCreate.id(), activeTaskToCreate.inputPartitions())) - )).andReturn(emptySet()); expect(standbyTaskCreator.createTasks(Collections.emptyMap())).andReturn(emptySet()); - replay(activeTaskCreator, standbyTaskCreator); + replay(standbyTaskCreator); taskManager.handleAssignment( mkMap(mkEntry(activeTaskToCreate.id(), activeTaskToCreate.inputPartitions())), Collections.emptyMap() ); - verify(activeTaskCreator, standbyTaskCreator); + verify(standbyTaskCreator); + Mockito.verify(activeTaskCreator).createTasks( + consumer, Review Comment: None that I know of 😞 -- 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