From 29e9e0c6bd29e736f69fb992b4b445dfea2a1a26 Mon Sep 17 00:00:00 2001 From: Valera V Harseko Date: Mon, 20 Jul 2026 18:36:55 +0300 Subject: [PATCH] Give embedded OpenDJ 30 s to start and stop in LDAP connector tests (#111) waitUntilStopped() allowed only 25 x 200 ms = 5 s for the server to shut down; on a loaded CI runner the stop after applying test-config.ldif can exceed that, failing before() and cascade-skipping the module's tests. Raise the budget to 30 s, and align waitUntilListening() (10 s -> 30 s), which fails the same way. Both loops exit as soon as the server is actually up/down, so the successful case is unaffected. --- .../org/identityconnectors/ldap/LdapConnectorTestBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenICF-ldap-connector/src/test/java/org/identityconnectors/ldap/LdapConnectorTestBase.java b/OpenICF-ldap-connector/src/test/java/org/identityconnectors/ldap/LdapConnectorTestBase.java index 385c589c..a0084553 100644 --- a/OpenICF-ldap-connector/src/test/java/org/identityconnectors/ldap/LdapConnectorTestBase.java +++ b/OpenICF-ldap-connector/src/test/java/org/identityconnectors/ldap/LdapConnectorTestBase.java @@ -262,7 +262,7 @@ protected void startServer() throws IOException { */ private static void waitUntilListening() throws IOException { final int WAIT = 200; // ms - final int ITERATIONS = 50; + final int ITERATIONS = 150; // 30 s: a loaded CI runner can be very slow (#111) for (int i = 1; !isListening(PORT) || !isListening(SSL_PORT); i++) { if (i >= ITERATIONS) { throw new IOException("OpenDJ is not listening on ports " + PORT + " and " + SSL_PORT @@ -292,7 +292,7 @@ protected static void stopServer() { */ private static boolean waitUntilStopped() { final int WAIT = 200; // ms - final int ITERATIONS = 25; + final int ITERATIONS = 150; // 30 s: a loaded CI runner can be very slow (#111) for (int i = 1; EmbeddedUtils.isRunning() || isAnyPortStillBound(); i++) { if (i >= ITERATIONS) { return false;