Skip to content

Commit b48dfe0

Browse files
committed
Fix test leaking connections
1 parent f9ec55d commit b48dfe0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/basic/CrossEnhancementTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import javax.persistence.Table;
2222
import java.io.Serializable;
2323

24+
import org.hibernate.SessionFactory;
25+
2426
/**
2527
* @author Luis Barreiro
2628
*/
@@ -35,6 +37,7 @@ public Class<?>[] getAnnotatedClasses() {
3537

3638
@Test
3739
public void test() {
40+
sessionFactory().close();
3841
buildSessionFactory();
3942
}
4043

0 commit comments

Comments
 (0)