Skip to content

Commit

Permalink
ups. sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Aug 26, 2023
1 parent 9ca51ab commit 53bb148
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 53bb148

Please sign in to comment.