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
1 changed files with 1 additions and 0 deletions

View File

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