mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
13.38.2015 f5a68d422df0f48a52ee75caf797e4d3123b83d1
Fighting back random test failure
1 files modified
5 ■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/protocols/jmx/JmxTestCase.java 5 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/jmx/JmxTestCase.java
@@ -45,6 +45,7 @@
import org.testng.annotations.Test;
/** An abstract class that all JMX unit test should extend. */
@SuppressWarnings("javadoc")
@Test(groups = { "precommit", "jmx" }, sequential = true)
public abstract class JmxTestCase extends DirectoryServerTestCase
{
@@ -84,9 +85,11 @@
    int cnt = 0;
    while (cnt <= 30 && jmxConnectionHandler.getRMIConnector().jmxRmiConnectorNoClientCertificate == null)
    {
      Thread.sleep(100);
      Thread.sleep(200);
      cnt++;
    }
    assertNotNull(jmxConnectionHandler.getRMIConnector().jmxRmiConnectorNoClientCertificate,
        "jmxRmiConnectorNoClientCertificate should not be null");
    return jmxConnectionHandler;
  }