Fix test leaking connections
This commit is contained in:
parent
f9ec55d56b
commit
b48dfe0d11
|
@ -21,6 +21,8 @@ import javax.persistence.MapsId;
|
|||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.hibernate.SessionFactory;
|
||||
|
||||
/**
|
||||
* @author Luis Barreiro
|
||||
*/
|
||||
|
@ -35,6 +37,7 @@ public class CrossEnhancementTest extends BaseCoreFunctionalTestCase {
|
|||
|
||||
@Test
|
||||
public void test() {
|
||||
sessionFactory().close();
|
||||
buildSessionFactory();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue