Skip to content

Commit

Permalink
sleep before cancelling to see if logs are still same...
Browse files Browse the repository at this point in the history
  • Loading branch information
sleberknight committed Nov 16, 2023
1 parent d35a86f commit b4fb800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/org/kiwiproject/concurrent/AsyncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ void shouldTimeout_WhenTaskTakesLongerThan_MaxTimeout() {
LOG.info("future.isCancelled: {}", future.isCancelled());
LOG.info("future.isCompletedExceptionally: {}", future.isCompletedExceptionally());

LOG.info("Wait a bit before cancelling the future...");

ENV.sleepQuietly(5_000); // TODO - temporary b/c both sets of future.isXxx were the same, unexpectedly...

LOG.info("Cancel the future!");

cancel(future);
Expand Down

0 comments on commit b4fb800

Please sign in to comment.