Test fix: em2 should be closed before we do latch.countDown()

This commit is contained in:
Zbyněk Roubalík 2013-03-15 14:34:43 +01:00 committed by Brett Meyer
parent 505904026d
commit 03daecfe49
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}
} );