YARN-8438. TestContainer.testKillOnNew flaky on trunk. Contributed by Szilard Nemeth.
This commit is contained in:
parent
7a3c6e9c3c
commit
35ec9401e8
|
@ -591,9 +591,8 @@ public class TestContainer {
|
|||
Assert.assertEquals(ContainerExitStatus.KILLED_BY_RESOURCEMANAGER,
|
||||
containerMetrics.exitCode.value());
|
||||
Assert.assertTrue(containerMetrics.startTime.value() > 0);
|
||||
Assert.assertTrue(
|
||||
containerMetrics.finishTime.value() > containerMetrics.startTime
|
||||
.value());
|
||||
Assert.assertTrue(containerMetrics.finishTime.value() >=
|
||||
containerMetrics.startTime.value());
|
||||
Assert.assertEquals(ContainerEventType.KILL_CONTAINER,
|
||||
wc.initStateToEvent.get(ContainerState.NEW));
|
||||
Assert.assertEquals(ContainerState.DONE,
|
||||
|
@ -1612,4 +1611,5 @@ public class TestContainer {
|
|||
return ((ContainerImpl)c).getRetryPolicy();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue