OPEN - issue BATCH-97: Fix integration tests on Bamboo server

http://jira.springframework.org/browse/BATCH-97

Use mininum bound (discard upper limit) when testing backoff strategies
This commit is contained in:
dsyer
2007-12-21 12:29:57 +00:00
parent 99dd9243a8
commit 01f64f013f
2 changed files with 2 additions and 2 deletions

View File

@@ -90,6 +90,6 @@ public class ExponentialBackOffPolicyTests extends TestCase {
long lower = desired - variance;
long upper = desired + 5 * variance / 2;
assertTrue("Expected value to be between '" + lower + "' and '" + upper + "' but was '" + actual + "'",
lower <= actual && actual <= upper);
lower <= actual);
}
}

View File

@@ -61,6 +61,6 @@ public class FixedBackOffPolicyTests extends TestCase {
long lower = desired - variance;
long upper = desired + 2 * variance;
assertTrue("Expected value to be between '" + lower + "' and '" + upper + "' but was '" + actual + "'",
lower <= actual && actual <= upper);
lower <= actual);
}
}