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

Jean-Noel Rouvignac
08.26.2015 167960a027b7d51813cd34395537ee017659d211
opendj-server-legacy/src/test/java/org/opends/server/protocols/jmx/PostConnectedDisconnectTest.java
@@ -26,7 +26,6 @@
 */
package org.opends.server.protocols.jmx;
import java.io.IOException;
import java.util.HashMap;
import org.opends.server.TestCaseUtils;
@@ -123,14 +122,7 @@
    OpendsJmxConnector opendsConnector = new OpendsJmxConnector("localhost",
        TestCaseUtils.getServerJmxPort(), env);
    assertNotNull(opendsConnector);
    try
    {
      opendsConnector.connect();
    }
    catch (IOException e)
    {
      assertTrue(false, "JMX connection error: " + e.getMessage());
    }
    opendsConnector.connect();
    // Check that number of postconnect has been incremented.
    // Don't wait more than 5 seconds