ableegoldman commented on a change in pull request #9940:
URL: https://github.com/apache/kafka/pull/9940#discussion_r561368977



##########
File path: 
streams/src/test/java/org/apache/kafka/streams/processor/internals/TaskManagerTest.java
##########
@@ -2779,6 +2779,62 @@ public void suspend() {
         assertThat(task01.state(), is(Task.State.SUSPENDED));
     }
 
+    @Test
+    public void shouldConvertActiveTaskToStandbyTask() {
+        final StreamTask activeTask = mock(StreamTask.class);
+        expect(activeTask.id()).andReturn(taskId00).anyTimes();
+        
expect(activeTask.inputPartitions()).andReturn(taskId00Partitions).anyTimes();

Review comment:
       nit:  use `andStubReturn` instead of `andReturn().anyTimes`. No need to 
change this now, don't want to block the fix, just fyi for future PRs 




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to