From 986fae03ea00a14ee69cd093cd69e614ae0aa298 Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 06 Oct 2006 14:33:51 +0000
Subject: [PATCH] Fix some unreliable unit tests that were checking that the post response plugins had been called. Depending on thread scheduling the operation thread might not have called the post response plugins at the time of the check.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java | 3 ++-
opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java
index 98c3f52..1513d58 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java
@@ -646,7 +646,8 @@
assertEquals(InvocationCounterPlugin.getPreParseCount(), 1);
assertEquals(InvocationCounterPlugin.getPreOperationCount(), 0);
assertEquals(InvocationCounterPlugin.getPostOperationCount(), 0);
- assertEquals(InvocationCounterPlugin.getPostResponseCount(), 1);
+ // The post response might not have been called yet.
+// assertEquals(InvocationCounterPlugin.getPostResponseCount(), 1);
} finally
{
LockManager.unlock(entry.getDN(), writeLock);
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java
index be864d2..b281510 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java
@@ -1144,7 +1144,8 @@
assertEquals(InvocationCounterPlugin.getPreParseCount(), 1);
assertEquals(InvocationCounterPlugin.getPreOperationCount(), 0);
assertEquals(InvocationCounterPlugin.getPostOperationCount(), 0);
- assertEquals(InvocationCounterPlugin.getPostResponseCount(), 1);
+ // The post response might not have been called yet.
+// assertEquals(InvocationCounterPlugin.getPostResponseCount(), 1);
} finally
{
LockManager.unlock(entry.getDN(), writeLock);
--
Gitblit v1.10.0