Wait for storage space to be calculated before running storage policy tests.

This commit is contained in:
CalDescent 2021-11-27 18:06:48 +00:00
parent 4b8bcd265b
commit 8e36c456e1

View File

@ -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