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:
parent
8823f69256
commit
0db681eeda
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user