This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 69c70bc27 Better asserts in test
69c70bc27 is described below
commit 69c70bc273ee7cd70fe312b3ce26a265c98d073d
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 27 08:39:33 2023 -0400
Better asserts in test
---
src/test/java/org/apache/commons/lang3/time/StopWatchTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java
b/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java
index 69ac71dcd..7d85c5ab5 100644
--- a/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java
@@ -318,10 +318,10 @@ public class StopWatchTest extends AbstractLangTest {
watch.stop();
final long totalTime = watch.getTime();
- assertTrue(suspendTime >= 500);
- assertTrue(suspendTime < 700);
- assertTrue(totalTime >= 1000);
- assertTrue(totalTime < 1300);
+ assertTrue(suspendTime >= 500, "suspendTime = " + suspendTime);
+ assertTrue(suspendTime < 700, "suspendTime = " + suspendTime);
+ assertTrue(totalTime >= 1000, "totalTime = " + totalTime);
+ assertTrue(totalTime < 1300, "totalTime = " + totalTime);
}
@Test