From 53bb14837f045e9408bf21650d632cf5f887fddd Mon Sep 17 00:00:00 2001 From: Arturo Bernal Date: Sat, 26 Aug 2023 19:06:54 +0200 Subject: [PATCH] ups. sorry --- .../java/org/apache/hc/core5/concurrent/TestBasicFuture.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/httpcore5/src/test/java/org/apache/hc/core5/concurrent/TestBasicFuture.java b/httpcore5/src/test/java/org/apache/hc/core5/concurrent/TestBasicFuture.java index 3ab858a12..a22923fdf 100644 --- a/httpcore5/src/test/java/org/apache/hc/core5/concurrent/TestBasicFuture.java +++ b/httpcore5/src/test/java/org/apache/hc/core5/concurrent/TestBasicFuture.java @@ -28,11 +28,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.assertTimeoutPreemptively; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.fail; -import java.time.Duration; import java.util.concurrent.CancellationException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; @@ -281,7 +278,7 @@ public void cancelled() { }).start(); // Await the completion of the future, but no more than 500ms. - boolean completedInTime = latch.await(500, TimeUnit.MILLISECONDS); + final boolean completedInTime = latch.await(500, TimeUnit.MILLISECONDS); assertTrue(completedInTime, "Future did not complete in the expected time."); assertEquals("test", future.get());