3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-12 10:15:49 +00:00

Fixed failing storage policy tests due to not calculating the available storage

This commit is contained in:
CalDescent 2021-11-27 17:56:34 +00:00
parent 8823f69256
commit 0db681eeda
2 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,7 @@ public class ArbitraryDataStorageManager extends Thread {
public void shutdown() { public void shutdown() {
isStopping = true; isStopping = true;
this.interrupt(); this.interrupt();
instance = null;
} }
/** /**

View File

@ -1,6 +1,7 @@
package org.qortal.test.arbitrary; package org.qortal.test.arbitrary;
import org.apache.commons.lang3.reflect.FieldUtils; import org.apache.commons.lang3.reflect.FieldUtils;
import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.qortal.account.PrivateKeyAccount; import org.qortal.account.PrivateKeyAccount;
@ -31,6 +32,12 @@ public class ArbitraryDataStoragePolicyTests extends Common {
@Before @Before
public void beforeTest() throws DataException { public void beforeTest() throws DataException {
Common.useDefaultSettings(); Common.useDefaultSettings();
ArbitraryDataStorageManager.getInstance().start();
}
@After
public void afterTest() throws DataException {
ArbitraryDataStorageManager.getInstance().shutdown();
} }
@Test @Test