HDDS-1961. TestStorageContainerManager#testScmProcessDatanodeHeartbeat is flaky.
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
68c818415a
commit
cb390dff87
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue