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 {
|
||||
|
||||
@Before
|
||||
public void beforeTest() throws DataException {
|
||||
public void beforeTest() throws DataException, InterruptedException {
|
||||
Common.useDefaultSettings();
|
||||
this.deleteListsDirectory();
|
||||
ArbitraryDataStorageManager.getInstance().start();
|
||||
|
||||
// Wait for storage space to be calculated
|
||||
while (!ArbitraryDataStorageManager.getInstance().isStorageCapacityCalculated()) {
|
||||
Thread.sleep(100L);
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
|
Loading…
Reference in New Issue
Block a user