Skip to content

Commit

Permalink
yegor256#430 Tolerate 100ms sleeping time in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HDouss committed Jan 7, 2016
1 parent b3f1aff commit b846c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/takes/tk/TkRetryTest.java
Expand Up @@ -85,7 +85,7 @@ public void retriesOnExceptionTillCount() throws Exception {
} catch (final IOException exception) {
final long spent = System.nanoTime() - start;
MatcherAssert.assertThat(
new Long(count * delay) * Tv.MILLION,
new Long(count * delay - Tv.HUNDRED) * Tv.MILLION,
Matchers.lessThanOrEqualTo(spent)
);
throw exception;
Expand Down Expand Up @@ -114,7 +114,7 @@ public void retriesOnExceptionTillSuccess() throws Exception {
);
final long spent = System.nanoTime() - startTime;
MatcherAssert.assertThat(
new Long(delay) * Tv.MILLION,
new Long(delay - Tv.HUNDRED) * Tv.MILLION,
Matchers.lessThanOrEqualTo(spent)
);
MatcherAssert.assertThat(
Expand Down

0 comments on commit b846c8f

Please sign in to comment.