YARN-9262. TestRMAppAttemptTransitions is failing with an NPE. Contributed by lujie.

(cherry picked from commit 28ad20a711735243bc10b10e33866dc525f415eb)
This commit is contained in:
Weiwei Yang 2019-02-02 23:02:45 +08:00 committed by Sunil G
parent 99876a5ab8
commit b64e9df949

View File

@ -1662,7 +1662,7 @@ public void testContainerRemovedBeforeAllocate() {
when(allocation.getContainers()).
thenReturn(Collections.singletonList(container));
when(scheduler.allocate(any(ApplicationAttemptId.class), any(List.class),
any(List.class), any(List.class), any(List.class), any(List.class),
any(), any(), any(), any(),
any(ContainerUpdates.class))).
thenReturn(allocation);