Upgraded Spongy Castle to 1.53, fixed tests. #146

This commit is contained in:
akwizgran
2015-12-03 11:12:16 +00:00
parent 427efdc7d6
commit 8ae3fb3e35
14 changed files with 22 additions and 48 deletions

View File

@@ -33,7 +33,7 @@ class H2Database extends JdbcDatabase {
super(HASH_TYPE, BINARY_TYPE, COUNTER_TYPE, SECRET_TYPE, clock);
this.config = config;
this.fileUtils = fileUtils;
String path = new File(config.getDatabaseDirectory(), "db").getPath();
String path = new File(config.getDatabaseDirectory(), "db").getAbsolutePath();
// FIXME: Remove WRITE_DELAY=0 after implementing BTPv2?
url = "jdbc:h2:split:" + path + ";CIPHER=AES;MULTI_THREADED=1"
+ ";WRITE_DELAY=0;DB_CLOSE_ON_EXIT=false";