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.
| | |
| | | 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); |
| | |
| | | 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); |