diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java index 07cd415355a..517c1a7c47f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/lease/TestLeaseManager.java @@ -138,7 +138,7 @@ public class TestLeaseManager { Lease leaseThree = manager.acquire(resourceThree); Assert.assertEquals(leaseThree, manager.get(resourceThree)); Assert.assertFalse(leaseThree.hasExpired()); - long sleepTime = leaseThree.getRemainingTime() + 5; + long sleepTime = leaseThree.getRemainingTime() + 1000; try { Thread.sleep(sleepTime); } catch (InterruptedException ex) { @@ -189,7 +189,7 @@ public class TestLeaseManager { return null; }); // wait for lease to expire - long sleepTime = leaseOne.getRemainingTime() + 5; + long sleepTime = leaseOne.getRemainingTime() + 1000; try { Thread.sleep(sleepTime); } catch (InterruptedException ex) { @@ -278,7 +278,7 @@ public class TestLeaseManager { manager.release(resourceThree); // wait for other leases to expire - long sleepTime = leaseFive.getRemainingTime() + 10; + long sleepTime = leaseFive.getRemainingTime() + 1000; try { Thread.sleep(sleepTime); @@ -332,7 +332,7 @@ public class TestLeaseManager { Assert.assertFalse(leaseOne.hasExpired()); // wait for lease to expire - long sleepTime = leaseOne.getRemainingTime() + 5; + long sleepTime = leaseOne.getRemainingTime() + 1000; try { Thread.sleep(sleepTime); } catch (InterruptedException ex) {