Skip to content

Commit

Permalink
TRUNK-6297 - Ensure H2 database is not closed unexpectedly early (#4911)
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Feb 6, 2025
1 parent 9354c8c commit 1b35456
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public Properties getRuntimeProperties() {
// properties
if (useInMemoryDatabase()) {
runtimeProperties.setProperty(Environment.DIALECT, H2Dialect.class.getName());
String url = "jdbc:h2:mem:openmrs;DB_CLOSE_DELAY=30;LOCK_TIMEOUT=10000;IGNORECASE=TRUE";
String url = "jdbc:h2:mem:openmrs;DB_CLOSE_DELAY=-1;LOCK_TIMEOUT=10000;IGNORECASE=TRUE";
runtimeProperties.setProperty(Environment.URL, url);
runtimeProperties.setProperty(Environment.DRIVER, "org.h2.Driver");
runtimeProperties.setProperty(Environment.USER, "sa");
Expand Down

0 comments on commit 1b35456

Please sign in to comment.