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

coulbeck
06.33.2006 986fae03ea00a14ee69cd093cd69e614ae0aa298
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.
2 files modified
6 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java 3 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java 3 ●●●● patch | view | raw | blame | history
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);
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);