mirror of https://github.com/apache/jclouds.git
Fixes missing consistency waits in testDirectory
This commit is contained in:
parent
e25a44eab9
commit
a26208b9f4
|
@ -252,6 +252,8 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
||||||
assert view.getBlobStore().directoryExists(containerName, directory + "/" + directory);
|
assert view.getBlobStore().directoryExists(containerName, directory + "/" + directory);
|
||||||
|
|
||||||
view.getBlobStore().clearContainer(containerName, inDirectory(directory));
|
view.getBlobStore().clearContainer(containerName, inDirectory(directory));
|
||||||
|
awaitConsistency();
|
||||||
|
|
||||||
assert view.getBlobStore().directoryExists(containerName, directory);
|
assert view.getBlobStore().directoryExists(containerName, directory);
|
||||||
assert view.getBlobStore().directoryExists(containerName, directory + "/" + directory);
|
assert view.getBlobStore().directoryExists(containerName, directory + "/" + directory);
|
||||||
|
|
||||||
|
@ -262,6 +264,8 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
||||||
|
|
||||||
view.getBlobStore().createDirectory(containerName, directory + "/" + directory);
|
view.getBlobStore().createDirectory(containerName, directory + "/" + directory);
|
||||||
|
|
||||||
|
awaitConsistency();
|
||||||
|
|
||||||
container = view.getBlobStore().list(containerName, inDirectory(directory).recursive());
|
container = view.getBlobStore().list(containerName, inDirectory(directory).recursive());
|
||||||
assert container.getNextMarker() == null;
|
assert container.getNextMarker() == null;
|
||||||
assert container.size() == 1 : container;
|
assert container.size() == 1 : container;
|
||||||
|
|
Loading…
Reference in New Issue