From b07d845e862d09e7a5d5597f039be9e78f3a75da Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Mon, 08 Jan 2007 10:43:34 +0000
Subject: [PATCH] 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.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java
index 3381157..dffa201 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java
+++ b/opendj-sdk/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;
}
--
Gitblit v1.10.0