From d0fd31f505c65391720afb1666ce4de3ef447466 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 4 Sep 2024 13:16:00 -0400 Subject: [PATCH] Be lenient for slow running builds --- src/test/java/org/apache/commons/lang3/time/StopWatchTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7e3f07838..04986fba3 100644 --- a/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java +++ b/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java @@ -423,7 +423,7 @@ public class StopWatchTest extends AbstractLangTest { () -> String.format("totalDuration >= sleepMillisX2", totalDuration, sleepMillisX2)); ; // Be lenient for slow running builds - final long testTooLongMillis = sleepMillis * 5; + final long testTooLongMillis = sleepMillis * 100; assertTrue(totalTimeFromNanos < testTooLongMillis, () -> String.format("totalTimeFromNanos %s < testTooLongMillis %s", totalTimeFromNanos, testTooLongMillis)); assertTrue(totalDuration.compareTo(Duration.ofMillis(testTooLongMillis)) < 0,