Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ public void testShutdownWhileInitializationWaitsForConfiguration() throws Except
executor.submit(() -> evaluator.initialize(60, SECONDS, null));
try {
assertTrue(subscribed.await(5, SECONDS));
// The subscription fires inside the evaluator's synchronized initialization, before it
// assigns the runtime: wait for the evaluator to release its monitor.
synchronized (evaluator) {
}
assertFalse(other.initialize(0, MILLISECONDS, null));
assertSame(other.runtime(), evaluator.runtime());

Expand Down
Loading