mjsax commented on a change in pull request #9744: URL: https://github.com/apache/kafka/pull/9744#discussion_r556206559
########## File path: streams/src/test/java/org/apache/kafka/streams/processor/internals/StreamTaskTest.java ########## @@ -494,7 +494,9 @@ public void process(final Record<Integer, Integer> record) { // e2e latency = 10 task.addRecords(partition1, singletonList(getConsumerRecord(0, 0L))); - task.process(10L); + time = new MockTime(0L, 10L, 0L); Review comment: In L159, we define a global mock time object: ``` private MockTime time = new MockTime(); ``` that is passed into `StreamTask`. You can call `time.sleep(...)` to advance the mock time. ---------------------------------------------------------------- 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: us...@infra.apache.org