mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 15:08:28 +00:00
changed behavior so that bad buckets aren't accidentally given out
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1476 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
d41f1fac72
commit
9c84796aa3
@ -295,10 +295,15 @@ public class S3IntegrationTest {
|
||||
this.deleteEverything();
|
||||
for (; bucketIndex < bucketCount; bucketIndex++) {
|
||||
String bucketName = bucketPrefix + bucketIndex;
|
||||
bucketNames.put(bucketName);
|
||||
try {
|
||||
createBucketAndEnsureEmpty(bucketName);
|
||||
bucketNames.put(bucketName);
|
||||
} catch (AssertionError e) {
|
||||
// throw away the bucket and try again with the next index
|
||||
deleteBucket(bucketName);
|
||||
bucketCount++;
|
||||
}
|
||||
}
|
||||
Thread.sleep(INCONSISTENCY_WINDOW);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user