This commit is contained in:
Armin Schrenk
2025-01-21 16:01:49 +01:00
parent d3909134d5
commit 5d4066d29a

View File

@@ -22,7 +22,12 @@ public class KeychainManagerTest {
@BeforeAll
public static void startup() throws InterruptedException {
CountDownLatch latch = new CountDownLatch(1);
Platform.startup(latch::countDown);
try {
Platform.startup(latch::countDown);
} catch (IllegalStateException e) {
//already initialized
latch.countDown();
}
var javafxStarted = latch.await(5, TimeUnit.SECONDS);
Assumptions.assumeTrue(javafxStarted);
}