From abf2d21279b6efed611b28a4d7753aa9a09aae31 Mon Sep 17 00:00:00 2001 From: adamw Date: Sat, 2 Apr 2011 10:02:48 +0200 Subject: [PATCH] HHH-6020: keeping the in-memory database open for the duration of the JVM lifetime - so that the JTA tests pass - otherwise after creating the tables, all connections are closed before executing tests, which causes the DB to be cleared. --- .../test/java/org/hibernate/envers/test/AbstractEntityTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEntityTest.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEntityTest.java index 9efe6afc6b..b6765777ef 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEntityTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/AbstractEntityTest.java @@ -89,7 +89,7 @@ public abstract class AbstractEntityTest extends AbstractEnversTest { configValues.setProperty(Environment.USER, "sa"); // Separate database for each test class - configValues.setProperty(Environment.URL, "jdbc:h2:mem:" + this.getClass().getName()); + configValues.setProperty(Environment.URL, "jdbc:h2:mem:" + this.getClass().getName() + ";DB_CLOSE_DELAY=-1"); if (auditStrategy != null && !"".equals(auditStrategy)) { cfg.setProperty("org.hibernate.envers.audit_strategy", auditStrategy);