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_r256863744
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPoolTest.java
 ##########
 @@ -160,19 +150,18 @@ public void testAllocationFulfilledByReturnedSlot() 
throws Exception {
                        }
                });
 
-               final SlotPool slotPool = new SlotPool(rpcService, jobId, 
LocationPreferenceSchedulingStrategy.getInstance());
-
-               try {
-                       SlotPoolGateway slotPoolGateway = 
setupSlotPool(slotPool, resourceManagerGateway);
+               try (SlotPoolImpl newSlotPool = new SlotPoolImpl(jobId)) {
+                       SlotPoolImpl slotPool = setupSlotPool(newSlotPool, 
resourceManagerGateway, mainThreadExecutor);
 
 Review comment:
   The same applies for the other tests I assume with aliasing.

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