forked from Qortal/qortal
Wait for storage space to be calculated before running storage policy tests.
This commit is contained in:
parent
4b8bcd265b
commit
8e36c456e1
@ -32,10 +32,15 @@ import static org.junit.Assert.*;
|
|||||||
public class ArbitraryDataStoragePolicyTests extends Common {
|
public class ArbitraryDataStoragePolicyTests extends Common {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void beforeTest() throws DataException {
|
public void beforeTest() throws DataException, InterruptedException {
|
||||||
Common.useDefaultSettings();
|
Common.useDefaultSettings();
|
||||||
this.deleteListsDirectory();
|
this.deleteListsDirectory();
|
||||||
ArbitraryDataStorageManager.getInstance().start();
|
ArbitraryDataStorageManager.getInstance().start();
|
||||||
|
|
||||||
|
// Wait for storage space to be calculated
|
||||||
|
while (!ArbitraryDataStorageManager.getInstance().isStorageCapacityCalculated()) {
|
||||||
|
Thread.sleep(100L);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
|
Loading…
x
Reference in New Issue
Block a user