forked from Qortal/qortal
Fixed failing storage policy tests due to not calculating the available storage
This commit is contained in:
parent
8823f69256
commit
0db681eeda
@ -77,6 +77,7 @@ public class ArbitraryDataStorageManager extends Thread {
|
||||
public void shutdown() {
|
||||
isStopping = true;
|
||||
this.interrupt();
|
||||
instance = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user