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 a53438159a
commit 44aea81972

View File

@ -64,7 +64,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")