RFR: JDK-8304557: java/util/concurrent/CompletableFuture/CompletableFutureOrTimeoutExceptionallyTest.java times out

Pavel Rappo prappo at openjdk.org
Wed Mar 22 16:32:09 UTC 2023


On Wed, 22 Mar 2023 16:06:51 GMT, Viktor Klang <duke at openjdk.org> wrote:

> The other alternative I see would be to reach into the implementation of CompletableFuture's `Delayer`'s `ScheduledThreadPoolExecutor delayer` and make sure that it's `getQueue()` eventually goes empty.

>From what I've seen, JDK prefers blackbox tests to whitebox tests. Even though the latter might conserve resources better and are easier to implement, they are problematic in the long run: they become an obstacle if the system under tests is modified.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13116#discussion_r1145108257


More information about the core-libs-dev mailing list