You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2017/10/27 12:57:55 UTC
[lang] EventCountCircuitBreakerTest#testNow: improve assertion
failure message
Repository: commons-lang
Updated Branches:
refs/heads/master 7a3ca8598 -> 758228f69
EventCountCircuitBreakerTest#testNow: improve assertion failure message
(side-effects: close #298, close #297, close #279, close #184, close #75)
Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/758228f6
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/758228f6
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/758228f6
Branch: refs/heads/master
Commit: 758228f691b34c97f421ed92336772531495e0cc
Parents: 7a3ca85
Author: pascalschumacher <pa...@gmx.net>
Authored: Fri Oct 27 14:57:41 2017 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Fri Oct 27 14:57:41 2017 +0200
----------------------------------------------------------------------
.../commons/lang3/concurrent/EventCountCircuitBreakerTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-lang/blob/758228f6/src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java b/src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java
index 5a92fd5..1c9e794 100644
--- a/src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java
+++ b/src/test/java/org/apache/commons/lang3/concurrent/EventCountCircuitBreakerTest.java
@@ -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);
}
/**