From c3ca10c22a3179ec3b1f699cccf33884e494653d Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Wed, 28 Mar 2018 17:35:17 +0800 Subject: [PATCH] YARN-7734. Fix UT failure TestContainerLogsPage#testContainerLogPageAccess. Contributed by Tao Yang. (cherry picked from commit 411993f6e5723c8cba8100bff0269418e46f6367) --- .../yarn/server/nodemanager/webapp/TestContainerLogsPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java index 8dc06c7ace9..ece1af4a260 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/webapp/TestContainerLogsPage.java @@ -259,6 +259,7 @@ public class TestContainerLogsPage { new ConcurrentHashMap(); 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);