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() {
isStopping = true;
this.interrupt();
instance = null;
}
/**

View File

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