From 76a94408a2895fd3f04c823a319e5c88e88bd84d Mon Sep 17 00:00:00 2001 From: "jetbrains-junie[bot]" <201638009+jetbrains-junie[bot]@users.noreply.github.com> Date: Sat, 13 Dec 2025 19:38:49 +0000 Subject: [PATCH] fix(test): increase SSL exception timeout to fix flaky test The SSLCertificateTest's SSL exception wait timeout was increased from 5 to 15 seconds. This change addressed the intermittent failure on macOS by allowing more time for the expected exception to appear. The fix stabilizes the test without impacting production code. --- .../src/test/java/quickfix/mina/ssl/SSLCertificateTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickfixj-core/src/test/java/quickfix/mina/ssl/SSLCertificateTest.java b/quickfixj-core/src/test/java/quickfix/mina/ssl/SSLCertificateTest.java index 16b4387457..e3fb0c0de8 100644 --- a/quickfixj-core/src/test/java/quickfix/mina/ssl/SSLCertificateTest.java +++ b/quickfixj-core/src/test/java/quickfix/mina/ssl/SSLCertificateTest.java @@ -992,7 +992,8 @@ public void shouldConnectDifferentTypesOfSessions() throws Exception { static abstract class TestConnector { private static final Logger LOGGER = LoggerFactory.getLogger(TestConnector.class); - private static final int TIMEOUT_SECONDS = 5; + // Increased from 5 to 15 seconds to reduce flakiness on slower environments (e.g., macOS) + private static final int TIMEOUT_SECONDS = 15; private final SessionConnector connector; private final CountDownLatch exceptionThrownLatch;