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

This commit is contained in:
Rohith Sharma K S 2016-10-27 11:34:07 +05:30
parent 9f32364d28
commit b110c4b5e8

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);