YARN-4555. TestDefaultContainerExecutor#testContainerLaunchError fails on non-english locale environment. Contributed by Takashi Ohnishi.
This commit is contained in:
parent
9f32364d28
commit
b110c4b5e8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue