From 695986b2b974ae154738a063f094210bfc6d3ba3 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 4 Sep 2024 11:28:14 -0400 Subject: [PATCH] Faster StopWatchTest.testLang315() --- .../java/org/apache/commons/lang3/time/StopWatchTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 ca1464315..70c32a3e3 100644 --- a/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java +++ b/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java @@ -278,11 +278,11 @@ public class StopWatchTest extends AbstractLangTest { @Test public void testLang315() throws InterruptedException { final StopWatch watch = StopWatch.createStarted(); - sleep(MILLIS_200); + sleep(TWO_MILLISECOND); watch.suspend(); final long suspendTime = watch.getTime(); final Duration suspendDuration = watch.getDuration(); - sleep(MILLIS_200); + sleep(TWO_MILLISECOND); watch.stop(); final long totalTime = watch.getTime(); final Duration totalDuration = watch.getDuration();