HDDS-1961. TestStorageContainerManager#testScmProcessDatanodeHeartbeat is flaky.

Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
Nanda kumar 2019-08-13 22:04:03 +05:30 committed by Anu Engineer
parent 68c818415a
commit cb390dff87
1 changed files with 1 additions and 2 deletions

View File

@ -527,8 +527,7 @@ public class TestStorageContainerManager {
for (DatanodeDetails node : allNodes) {
DatanodeInfo datanodeInfo = (DatanodeInfo) scm.getScmNodeManager()
.getNodeByUuid(node.getUuidString());
Assert.assertTrue((datanodeInfo.getLastHeartbeatTime() - start)
>= heartbeatCheckerIntervalMs);
Assert.assertTrue(datanodeInfo.getLastHeartbeatTime() > start);
Assert.assertEquals(datanodeInfo.getUuidString(),
datanodeInfo.getNetworkName());
Assert.assertEquals("/rack1", datanodeInfo.getNetworkLocation());