YARN-7734. Fix UT failure TestContainerLogsPage#testContainerLogPageAccess. Contributed by Tao Yang.

(cherry picked from commit 411993f6e5)
This commit is contained in:
Weiwei Yang 2018-03-28 17:35:17 +08:00 committed by Vinod Kumar Vavilapalli (I am also known as @tshooter.)
parent a13b3edfd8
commit c3ca10c22a
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ public class TestContainerLogsPage {
new ConcurrentHashMap<ContainerId, Container>();
when(context.getContainers()).thenReturn(containers);
when(context.getLocalDirsHandler()).thenReturn(dirsHandler);
when(context.getConf()).thenReturn(conf);
MockContainer container = new MockContainer(appAttemptId,
new AsyncDispatcher(), conf, user, appId, 1);