YARN-8438. TestContainer.testKillOnNew flaky on trunk. Contributed by Szilard Nemeth.

This commit is contained in:
Miklos Szegedi 2018-06-25 09:23:11 -07:00
parent 7a3c6e9c3c
commit 35ec9401e8
1 changed files with 4 additions and 4 deletions

View File

@ -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();
}
}
}