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

coulbeck
06.33.2006 a3a2dbbac76afa217bccc3921ed6010f7b399529
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
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/core/CompareOperationTestCase.java 3 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/core/TestModifyDNOperation.java 3 ●●●● patch | view | raw | blame | history
opendj-sdk/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);
opendj-sdk/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);