YARN-7734. Fix UT failure TestContainerLogsPage#testContainerLogPageAccess. Contributed by Tao Yang.
This commit is contained in:
parent
a71656c1c1
commit
411993f6e5
@ -259,6 +259,7 @@ public void testContainerLogPageAccess() throws IOException {
|
|||||||
new ConcurrentHashMap<ContainerId, Container>();
|
new ConcurrentHashMap<ContainerId, Container>();
|
||||||
when(context.getContainers()).thenReturn(containers);
|
when(context.getContainers()).thenReturn(containers);
|
||||||
when(context.getLocalDirsHandler()).thenReturn(dirsHandler);
|
when(context.getLocalDirsHandler()).thenReturn(dirsHandler);
|
||||||
|
when(context.getConf()).thenReturn(conf);
|
||||||
|
|
||||||
MockContainer container = new MockContainer(appAttemptId,
|
MockContainer container = new MockContainer(appAttemptId,
|
||||||
new AsyncDispatcher(), conf, user, appId, 1);
|
new AsyncDispatcher(), conf, user, appId, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user