[HHH-3817] Add missing lock release to test
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18871 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
523842514f
commit
5e71ea4c55
|
@ -91,7 +91,16 @@ public class PutFromLoadValidatorUnitTestCase extends TestCase {
|
||||||
if (transactional) {
|
if (transactional) {
|
||||||
tm.begin();
|
tm.begin();
|
||||||
}
|
}
|
||||||
assertTrue(testee.acquirePutFromLoadLock(KEY1));
|
|
||||||
|
boolean lockable = testee.acquirePutFromLoadLock(KEY1);
|
||||||
|
try {
|
||||||
|
assertTrue(lockable);
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
if (lockable) {
|
||||||
|
testee.releasePutFromLoadLock(KEY1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testRegisteredPut() throws Exception {
|
public void testRegisteredPut() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue