EventCountCircuitBreakerTest#testNow: improve assertion failure message
(side-effects: close #298, close #297, close #279, close #184, close #75)
This commit is contained in:
parent
7a3ca8598d
commit
758228f691
|
@ -100,7 +100,7 @@ public class EventCountCircuitBreakerTest {
|
|||
TimeUnit.SECONDS);
|
||||
final long now = breaker.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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue