@@ -42,7 +43,8 @@ public class AdaptiveWaiterTest {
...
@@ -42,7 +43,8 @@ public class AdaptiveWaiterTest {
waiter.pause(newIllegalStateException());
waiter.pause(newIllegalStateException());
}
}
assertEquals(waiter.waitDuration,Math.min((pauseCount-1)*minDuration,maxDuration));// waiter.waitDuration will be set to wait time for next pause()
//assertEquals(waiter.waitDuration, Math.min((pauseCount - 1) * minDuration, maxDuration)); // waiter.waitDuration will be set to wait time for next pause()
assertTrue(waiter.waitDuration>=Math.min((pauseCount-1)*minDuration,maxDuration));// waiter.waitDuration will be set to wait time for next pause()
}
}
@Test
@Test
...
@@ -52,7 +54,8 @@ public class AdaptiveWaiterTest {
...
@@ -52,7 +54,8 @@ public class AdaptiveWaiterTest {