tillrohrmann commented on a change in pull request #7662: [FLINK-10431] 
Extraction of scheduling-related code from SlotPool into preliminary Scheduler 
(rebased)
URL: https://github.com/apache/flink/pull/7662#discussion_r256852009
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionVertexSchedulingTest.java
 ##########
 @@ -125,8 +146,10 @@ public void testScheduleToDeploying() {
                                new 
ExecutionGraphTestUtils.SimpleActorGateway(TestingUtils.defaultExecutionContext())));
                        final SimpleSlot slot = instance.allocateSimpleSlot();
 
+                       Scheduler scheduler = mock(Scheduler.class);
                        CompletableFuture<LogicalSlot> future = new 
CompletableFuture<>();
                        future.complete(slot);
+                       when(scheduler.allocateSlot(any(SlotRequestId.class), 
any(ScheduledUnit.class), any(SlotProfile.class), anyBoolean(), 
any(Time.class))).thenReturn(future);
 
 Review comment:
   Please remove mocks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Reply via email to