Switch to using StampedLock
[mdsal.git] / dom / mdsal-dom-spi / src / test / java / org / opendaylight / mdsal / dom / spi / AbstractRegistrationTreeTest.java
index 530359f7c244a2c386d4e6a02905acfd62da3c0b..bd895dcaee40741c55b503f46a1a0f909528333e 100644 (file)
@@ -29,6 +29,7 @@ public class AbstractRegistrationTreeTest extends AbstractRegistrationTree<Objec
         this.takeLock();
         this.addRegistration(registrationTreeNode, registration);
         assertTrue(registrationTreeNode.getRegistrations().contains(registration));
+        this.releaseLock();
 
         this.removeRegistration(registrationTreeNode, registration);
         assertFalse(registrationTreeNode.getRegistrations().contains(registration));
@@ -41,4 +42,4 @@ public class AbstractRegistrationTreeTest extends AbstractRegistrationTree<Objec
     public void unlockTest() throws Exception {
         this.releaseLock();
     }
-}
\ No newline at end of file
+}