akalash commented on a change in pull request #15375:
URL: https://github.com/apache/flink/pull/15375#discussion_r604748381
##########
File path:
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskMailboxTestHarnessBuilder.java
##########
@@ -163,6 +163,7 @@ public StreamTaskMailboxTestHarnessBuilder(
streamMockEnvironment.setTaskMetricGroup(taskMetricGroup);
StreamTask<OUT, ?> task = taskFactory.apply(streamMockEnvironment);
+ task.restore();
task.beforeInvoke();
Review comment:
beforeInvoke is still needed for test purposes. It helps to switch the
internal isRunning flag to true without actual call the invoke. But if you
think that it is problem, I can try to rewrite the test.
--
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]