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

gbellato
08.43.2007 ddc55b6b9d49ccd870397623a87c44514f56bbe9
Update the org.opends.server.synchronization.UpdateOperationTest.getEntryUUID method
to fix the timeout mechanism so that this methods never hang forever in case of problem
but instead throw an Exception.

A count mechanism was implemented but the count variable was never decremented.

Issue Number 1110
1 files modified
9 ■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java 9 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java
@@ -819,8 +819,10 @@
  }
  /**
   * Check that the entry with the given dn has the given valueString value
   * for the given attrTypeStr attribute type.
   *  Get the entryUUID for a given DN.
   *
   * @throws Exception if the entry does not exist or does not have
   *                   an entryUUID.
   */
  private String getEntryUUID(DN dn) throws Exception
  {
@@ -870,7 +872,10 @@
      {
        LockManager.unlock(dn, lock);
      }
      count --;
    }
    if (found == null)
      throw new Exception("Entry: " + dn + " Could not be found.");
    return found;
  }