Skip to content

Commit b5d2f45

Browse files
Zbyněk Roubalíkbrmeyer
authored andcommitted
Test fix: em2 should be closed before we do latch.countDown()
1 parent 934e747 commit b5d2f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/lock/UpgradeLockTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public void run() {
8282
}
8383
finally {
8484
em2.getTransaction().commit();
85-
latch.countDown(); // signal that tx2 is committed
8685
em2.close();
86+
latch.countDown(); // signal that tx2 is committed
8787
}
8888
}
8989
} );

0 commit comments

Comments
 (0)