diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java index 8b0af2a7966..55b184a5bc2 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStorageContainerManager.java @@ -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());