YARN-4555. TestDefaultContainerExecutor#testContainerLaunchError fails on non-english locale environment. Contributed by Takashi Ohnishi.

(cherry picked from commit b110c4b5e82d8310f13a22bba1c8afbcca80144f)
This commit is contained in:
Rohith Sharma K S 2016-10-27 11:34:07 +05:30
parent 2aed61d887
commit 07b531c10a

View File

@ -268,6 +268,7 @@ public Object answer(InvocationOnMock invocationOnMock)
ContainerId cId = mock(ContainerId.class);
ContainerLaunchContext context = mock(ContainerLaunchContext.class);
HashMap<String, String> env = new HashMap<String, String>();
env.put("LANG", "C");
when(container.getContainerId()).thenReturn(cId);
when(container.getLaunchContext()).thenReturn(context);