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

Jean-Noel Rouvignac
08.06.2015 b8c6b80da1cb6118167a934daa480eb381c59e0e
opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
@@ -256,7 +256,9 @@
    checkConnection(30, broker, port);
    if (timeout != 0)
    {
      broker.setSoTimeout(timeout);
    }
  }
  /**
@@ -292,7 +294,9 @@
  protected void deleteEntry(DN dn) throws Exception
  {
    if (dn.parent().rdn().toString().equalsIgnoreCase("cn=domains"))
    {
      deleteEntry(DN.valueOf("cn=external changelog," + dn));
    }
    DeleteOperation op = connection.processDelete(dn);
    assertTrue(op.getResultCode() == SUCCESS || op.getResultCode() == NO_SUCH_OBJECT,
@@ -351,7 +355,9 @@
    // Check for unexpected replication config/objects left
    if (callParanoiaCheck)
    {
      paranoiaCheck();
    }
  }
  /**
@@ -513,7 +519,9 @@
    do
    {
      if (count++>0)
      {
        Thread.sleep(100);
      }
      op = connection.processSearch(newSearchRequest("cn=replication,cn=monitor", WHOLE_SUBTREE, monitorFilter));
    }
    while (op.getSearchEntries().isEmpty() && (count<100));
@@ -533,7 +541,9 @@
    boolean found = false;
    int count = timeout/100;
    if (count<1)
    {
      count=1;
    }
    do
    {
@@ -564,7 +574,9 @@
  {
    int count = timeout/200;
    if (count<1)
    {
      count=1;
    }
    Thread.sleep(50);
    boolean found = DirectoryServer.entryExists(dn);
    while ((count> 0) && (found != exist))