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 07cd415355..517c1a7c47 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 void testLeaseNotFound() throws LeaseException, InterruptedException { 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 void testLeaseCallback() throws LeaseException, InterruptedException { 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 void testLeaseCallbackWithMultipleLeases() 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 void testReuseTimedOutLease() 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) {