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

Jean-Noel Rouvignac
16.57.2015 a41662c1136b2bb4a4198df89e0e87d2be3ef099
opendj-server-legacy/src/test/java/org/opends/server/protocols/jmx/PostConnectedDisconnectTest.java
@@ -129,8 +129,8 @@
    long endTime = System.currentTimeMillis() + 5000;
    int postConnectAfter = postConnectBefore;
    while ((System.currentTimeMillis() < endTime)
        && (postConnectAfter == postConnectBefore))
    while (System.currentTimeMillis() < endTime
        && postConnectAfter == postConnectBefore)
    {
      Thread.sleep(10);
      postConnectAfter = InvocationCounterPlugin.getPostConnectCount();
@@ -148,8 +148,8 @@
    // Don't wait more than 5 seconds
    endTime = System.currentTimeMillis() + 5000;
    postDisconnectAfter = postDisconnectBefore;
    while ((System.currentTimeMillis() < endTime)
        && (postDisconnectAfter == postDisconnectBefore))
    while (System.currentTimeMillis() < endTime
        && postDisconnectAfter == postDisconnectBefore)
    {
      Thread.sleep(10);
      postDisconnectAfter = InvocationCounterPlugin.getPostDisconnectCount();