diff --git a/core/src/test/java/bisq/core/network/p2p/FileDatabaseTest.java b/core/src/test/java/bisq/core/network/p2p/FileDatabaseTest.java index 22bdd5b0bd1..776a3968294 100644 --- a/core/src/test/java/bisq/core/network/p2p/FileDatabaseTest.java +++ b/core/src/test/java/bisq/core/network/p2p/FileDatabaseTest.java @@ -166,11 +166,8 @@ public void migrationScenario2() throws Exception { * RESULT: * There are n + 1 data stores in the users working directory, one holding the live * database, the other 2 being the exact and readonly copy of the data stores in - * resources. Plus, the data stores in the working dir do not share any set of objects.

- * - * Ignored because file-based tests do not work well with CI. + * resources. Plus, the data stores in the working dir do not share any set of objects. */ - @Ignore @Test public void updateScenario() throws Exception { // setup scenario @@ -183,7 +180,7 @@ public void updateScenario() throws Exception { // beware of the nasty hack! // TODO replace as soon as we have at least one version string in history - setFinalStatic(Version.class.getField("history"), Arrays.asList("1.3.1")); + setFinalStatic(Version.class.getField("history"), Arrays.asList(getVersion(-1))); // simulate bisq startup AppendOnlyDataStoreService DUT = loadDatabase(); @@ -206,11 +203,8 @@ public void updateScenario() throws Exception { * and none in the working directory.

* * RESULT: - * After startup, there should be 3 data stores in the working directory.

- * - * Ignored because file-based tests do not work well with CI. + * After startup, there should be 3 data stores in the working directory. */ - @Ignore @Test public void freshInstallScenario() throws Exception { // setup scenario @@ -220,7 +214,7 @@ public void freshInstallScenario() throws Exception { // beware of the nasty hack! // TODO replace as soon as we have at least one version string in history - setFinalStatic(Version.class.getField("history"), Arrays.asList("1.3.1")); + setFinalStatic(Version.class.getField("history"), Arrays.asList(getVersion(-1))); // simulate bisq startup AppendOnlyDataStoreService DUT = loadDatabase();