sunhaibotb commented on a change in pull request #8731: [FLINK-11878][runtime]
Implement the runtime handling of BoundedOneInput and BoundedMultiInput
URL: https://github.com/apache/flink/pull/8731#discussion_r295834540
##########
File path:
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/StreamSourceOperatorLatencyMetricsTest.java
##########
@@ -164,7 +166,10 @@ private void testLatencyMarkEmission(int
numberLatencyMarkers, OperatorSetupOper
operatorSetup.setupSourceOperator(operator,
testProcessingTimeService);
// run and wait to be stopped
- operator.run(new Object(), mock(StreamStatusMaintainer.class),
new CollectorOutput<Long>(output), mock(OperatorChain.class));
+ OperatorChain<?, ?> operatorChain = new OperatorChain<>(
+ operator.getContainingTask(),
+
StreamTask.createRecordWriters(operator.getOperatorConfig(), new
MockEnvironmentBuilder().build()));
+ operator.run(new Object(), mock(StreamStatusMaintainer.class),
new CollectorOutput<Long>(output), operatorChain);
Review comment:
You're right. I overlooked that.
----------------------------------------------------------------
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]
With regards,
Apache Git Services