Test fix: em2 should be closed before we do latch.countDown()
This commit is contained in:
parent
505904026d
commit
03daecfe49
|
@ -82,8 +82,8 @@ public class UpgradeLockTest extends BaseEntityManagerFunctionalTestCase {
|
|||
}
|
||||
finally {
|
||||
em2.getTransaction().commit();
|
||||
latch.countDown(); // signal that tx2 is committed
|
||||
em2.close();
|
||||
latch.countDown(); // signal that tx2 is committed
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue