EventCountCircuitBreakerTest#testNow: improve assertion failure message

(side-effects: close #298, close #297, close #279, close #184, close #75)
This commit is contained in:
pascalschumacher 2017-10-27 14:57:41 +02:00
parent 7a3ca8598d
commit 758228f691

View File

@ -100,7 +100,7 @@ public void testNow() {
TimeUnit.SECONDS); TimeUnit.SECONDS);
final long now = breaker.now(); final long now = breaker.now();
final long delta = Math.abs(System.nanoTime() - now); final long delta = Math.abs(System.nanoTime() - now);
assertTrue("Delta to current time too large", delta < 100000); assertTrue(String.format("Delta %d ns to current time too large", delta), delta < 100000);
} }
/** /**