Skip to content

Commit

Permalink
Merge branch '6.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbasle committed Sep 24, 2024
2 parents 5bc2ff7 + 7df9db3 commit f7aa440
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.springframework.util.ConcurrentReferenceHashMap;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNoException;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.jupiter.api.condition.JRE.JAVA_18;

Expand Down Expand Up @@ -107,8 +108,9 @@ void concurrentReferenceHashMapSegmentClear() {
}
}, future2);

CompletableFuture.allOf(future1, future2).join();
assertThat(map).isEmpty();
//ensure blockhound doesn't trigger
final CompletableFuture<Void> allOf = CompletableFuture.allOf(future1, future2);
assertThatNoException().isThrownBy(allOf::join);
}

private void testNonBlockingTask(NonBlockingTask task) {
Expand Down

0 comments on commit f7aa440

Please sign in to comment.