Test fix: em2 should be closed before we do latch.countDown()
This commit is contained in:
parent
934e7476a3
commit
b5d2f455f0
|
@ -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