mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 11:45:49 +01:00
Stabelized automation integration test (#1944)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
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
Block a user