fixed test
This commit is contained in:
parent
4b1be3b2d4
commit
e63a76fff9
|
@ -105,7 +105,7 @@ public class ProfileTest extends ContextTest {
|
||||||
throw new NotFoundException(String.format("%s not found after %d retries", PROFILE_NAME, count));
|
throw new NotFoundException(String.format("%s not found after %d retries", PROFILE_NAME, count));
|
||||||
}
|
}
|
||||||
if(!found) {
|
if(!found) {
|
||||||
Thread.sleep(TimeUnit.SECONDS.toMillis(2*count));
|
Thread.sleep(TimeUnit.SECONDS.toMillis(5*count));
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ public class ProfileTest extends ContextTest {
|
||||||
throw new Exception(String.format("%s still found after %d retries", PROFILE_NAME, count));
|
throw new Exception(String.format("%s still found after %d retries", PROFILE_NAME, count));
|
||||||
}
|
}
|
||||||
if(found) {
|
if(found) {
|
||||||
Thread.sleep(TimeUnit.SECONDS.toMillis(2*count));
|
Thread.sleep(TimeUnit.SECONDS.toMillis(5*count));
|
||||||
++count;
|
++count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,8 +154,10 @@ public class ResourceTest extends ContextTest {
|
||||||
String itemsString = item.list(10, 0);
|
String itemsString = item.list(10, 0);
|
||||||
logger.debug("Got list", itemsString);
|
logger.debug("Got list", itemsString);
|
||||||
List<String> items = mapper.readValue(itemsString, listType);
|
List<String> items = mapper.readValue(itemsString, listType);
|
||||||
String name = items.get(0);
|
if(items.size()>0) {
|
||||||
Assert.assertTrue(name.compareTo(NAME_VALUE) != 0);
|
String name = items.get(0);
|
||||||
|
Assert.assertTrue(name.compareTo(NAME_VALUE) != 0);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue