fix karaf feature test; allow more time for feature to install

This commit is contained in:
Dejan Bosanac 2013-10-10 11:51:40 +02:00
parent 6bf168d524
commit 901867ec10
1 changed files with 8 additions and 2 deletions

View File

@ -137,10 +137,16 @@ public abstract class AbstractFeatureTest {
* @param feature
* @throws Exception
*/
public void installAndAssertFeature(String feature) throws Exception {
public void installAndAssertFeature(final String feature) throws Throwable {
System.err.println(executeCommand("features:install " + feature));
System.err.println(executeCommand("osgi:list -t 0"));
withinReason(new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
assertTrue("Expected " + feature + " feature to be installed.", featuresService.isInstalled(featuresService.getFeature(feature)));
return true;
}
});
}