Stabelized automation integration test (#1944)
Signed-off-by: Kai Kreuzer <kai@openhab.org>pull/1947/head
parent
0dd4cc97fe
commit
2b9f890831
|
@ -1460,4 +1460,13 @@ public class RuleEngineImpl implements RuleManager, RegistryChangeListener<Modul
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the rule engine has been started
|
||||
*
|
||||
* @return true, if the rule engine has been started
|
||||
*/
|
||||
public boolean isStarted() {
|
||||
return started;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,6 +170,10 @@ public class AutomationIntegrationTest extends JavaOSGiTest {
|
|||
// start rule engine
|
||||
((RuleEngineImpl) ruleEngine).onReadyMarkerAdded(new ReadyMarker("", ""));
|
||||
|
||||
waitForAssert(() -> {
|
||||
assertThat(((RuleEngineImpl) ruleEngine).isStarted(), is(true));
|
||||
}, 5000, 1000);
|
||||
|
||||
logger.info("@Before.finish");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue