mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 10:58:42 +00:00
* fix: Change h2 database usage to in mem (#2366) * #2366 Add delay option
This commit is contained in:
@@ -45,7 +45,7 @@ import org.h2.jdbcx.JdbcDataSource;
|
||||
*/
|
||||
@Slf4j
|
||||
public final class App {
|
||||
private static final String DB_URL = "jdbc:h2:~/test";
|
||||
private static final String DB_URL = "jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1";
|
||||
|
||||
/**
|
||||
* Private constructor.
|
||||
|
||||
@@ -36,7 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
class UserTableModuleTest {
|
||||
private static final String DB_URL = "jdbc:h2:~/test";
|
||||
private static final String DB_URL = "jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1";
|
||||
|
||||
private static DataSource createDataSource() {
|
||||
var dataSource = new JdbcDataSource();
|
||||
|
||||
Reference in New Issue
Block a user