mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Wait for storage space to be calculated before running storage policy tests.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user