fixed test

master
Luca Frosini 2 years ago
parent e63a76fff9
commit 08e3e7acbe

@ -89,7 +89,7 @@ public class ProfileTest extends ContextTest {
Profile profile = new Profile();
profile.create(PROFILE_NAME, String.format(PROFILE_XML, PROFILE_NAME));
Thread.sleep(TimeUnit.SECONDS.toMillis(5));
String list = profile.list();
logger.debug("Got Profiles {}\n", list);
@ -108,12 +108,18 @@ public class ProfileTest extends ContextTest {
Thread.sleep(TimeUnit.SECONDS.toMillis(5*count));
++count;
}
list = profile.list();
}
profile.read(PROFILE_NAME);
profile.delete(PROFILE_NAME);
Thread.sleep(TimeUnit.SECONDS.toMillis(5));
list = profile.list();
while(found) {
List<String> profiles = mapper.readValue(list, arrayType);
if(!profiles.contains(PROFILE_NAME)) {
@ -126,6 +132,9 @@ public class ProfileTest extends ContextTest {
Thread.sleep(TimeUnit.SECONDS.toMillis(5*count));
++count;
}
list = profile.list();
}
}

Loading…
Cancel
Save