divijvaidya commented on code in PR #15112: URL: https://github.com/apache/kafka/pull/15112#discussion_r1442911556
########## streams/src/test/java/org/apache/kafka/streams/processor/internals/TaskManagerTest.java: ########## @@ -4904,7 +4870,8 @@ public void suspend() { final Map<TaskId, Set<TopicPartition>> assignment = new HashMap<>(taskId00Assignment); assignment.putAll(taskId01Assignment); when(activeTaskCreator.createTasks(any(), Mockito.eq(assignment))).thenReturn(asList(task00, task01)); - replay(consumer); + + taskManager.setMainConsumer(mockitoConsumer); Review Comment: Is there a place where we are using old consumer with taskManager? If not, can we se this to new consumer in @before methods itself where we construct taskManager -- 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