clolov commented on code in PR #15261:
URL: https://github.com/apache/kafka/pull/15261#discussion_r1481560896


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/TaskManagerTest.java:
##########
@@ -2210,6 +2210,9 @@ public void shouldComputeOffsetSumForStandbyTask() throws 
Exception {
         restoringTask.setChangelogOffsets(changelogOffsets);
 
         assertThat(taskManager.getTaskOffsetSums(), is(expectedOffsetSums));
+
+        final Set<TopicPartition> assignment = singleton(new 
TopicPartition("assignment", 0));
+        Mockito.verify(mockitoConsumer).resume(assignment);

Review Comment:
   I was trying to keep the same strength of verification as was already 
present from the method I was trying to get rid of i.e.
   ```
       private static void expectRestoreToBeCompleted(final Consumer<byte[], 
byte[]> consumer) {
           final Set<TopicPartition> assignment = singleton(new 
TopicPartition("assignment", 0));
           expect(consumer.assignment()).andReturn(assignment);
           consumer.resume(assignment); <-- THIS
           expectLastCall();
       }
   ```
   If you think I can relax this, I am happy to remove it from the tests where 
you have made the same remark



-- 
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

Reply via email to