Fixes an issue where the number of retries was always set to 1.

This commit is contained in:
Zack Shoylev 2014-05-14 15:29:10 -05:00
parent 34866e5be1
commit e230880453

View File

@ -62,7 +62,9 @@ public class BaseOpenStackMockTest<A extends Closeable> {
@SuppressWarnings("serial")
public A api(String uri, String provider, Properties overrides) {
overrides.setProperty(PROPERTY_MAX_RETRIES, "1");
if (!overrides.containsKey(PROPERTY_MAX_RETRIES)) {
overrides.setProperty(PROPERTY_MAX_RETRIES, "1");
}
return ContextBuilder.newBuilder(provider)
.credentials("jclouds:joe", "letmein")