Be lenient for slow running builds

This commit is contained in:
Gary Gregory 2024-09-04 13:16:00 -04:00
parent 43d225464e
commit d0fd31f505
1 changed files with 1 additions and 1 deletions

View File

@ -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,