From 1f6b92fc9d323cb6798793db1a1bc6098616a4ca Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Mon, 7 Dec 2009 19:28:17 +0000 Subject: [PATCH] made times looser so that windows won't break git-svn-id: http://jclouds.googlecode.com/svn/trunk@2381 3d8758e0-26b5-11de-8745-db77d3ebf521 --- .../http/handlers/BackoffLimitedRetryHandlerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/org/jclouds/http/handlers/BackoffLimitedRetryHandlerTest.java b/core/src/test/java/org/jclouds/http/handlers/BackoffLimitedRetryHandlerTest.java index 5e80ac33f9..36e0d96bb2 100644 --- a/core/src/test/java/org/jclouds/http/handlers/BackoffLimitedRetryHandlerTest.java +++ b/core/src/test/java/org/jclouds/http/handlers/BackoffLimitedRetryHandlerTest.java @@ -65,25 +65,25 @@ public class BackoffLimitedRetryHandlerTest { long startTime = System.nanoTime(); handler.imposeBackoffExponentialDelay(1, "TEST FAILURE: 1"); long elapsedTime = (System.nanoTime() - startTime) / 1000000; - assertTrue(elapsedTime >= 50); + assert(elapsedTime >= 49) : elapsedTime; assertTrue(elapsedTime < 50 + acceptableDelay); startTime = System.nanoTime(); handler.imposeBackoffExponentialDelay(2, "TEST FAILURE: 2"); elapsedTime = (System.nanoTime() - startTime) / 1000000; - assertTrue(elapsedTime >= 200); + assert(elapsedTime >= 199) : elapsedTime; assertTrue(elapsedTime < 200 + acceptableDelay); startTime = System.nanoTime(); handler.imposeBackoffExponentialDelay(3, "TEST FAILURE: 3"); elapsedTime = (System.nanoTime() - startTime) / 1000000; - assertTrue(elapsedTime >= 450); + assert(elapsedTime >= 449) : elapsedTime; assertTrue(elapsedTime < 450 + acceptableDelay); startTime = System.nanoTime(); handler.imposeBackoffExponentialDelay(4, "TEST FAILURE: 4"); elapsedTime = (System.nanoTime() - startTime) / 1000000; - assertTrue(elapsedTime >= 800); + assert(elapsedTime >= 799) : elapsedTime; assertTrue(elapsedTime < 800 + acceptableDelay); startTime = System.nanoTime();