100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Improved reliability of JsonRulesTest.groovy
Rich Turnerf035fe4f12d7
diff --git a/test/src/test/groovy/org/openremote/test/rules/residence/JsonRulesTest.groovy b/test/src/test/groovy/org/openremote/test/rules/residence/JsonRulesTest.groovyindex 0ff31bd3e..c1a7666a2 100644--- a/test/src/test/groovy/org/openremote/test/rules/residence/JsonRulesTest.groovy+++ b/test/src/test/groovy/org/openremote/test/rules/residence/JsonRulesTest.groovy@@ -114,12 +114,13 @@ class JsonRulesTest extends Specification implements ManagerContainerTrait {getClass().getResource("/org/openremote/test/rules/BasicJsonRules.json").text)ruleset = rulesetStorageService.merge(ruleset)- expect: "the rule engines to become available and be running with asset states inserted"+ expect: "the rule engines to become available and be running with asset states inserted and no longer tracking location rules"conditions.eventually {tenantBuildingEngine = rulesService.tenantEngines.get(keycloakDemoSetup.tenantBuilding.realm)assert tenantBuildingEngine != nullassert tenantBuildingEngine.isRunning()assert tenantBuildingEngine.assetStates.size() == DEMO_RULE_STATES_CUSTOMER_A+ assert !tenantBuildingEngine.trackLocationPredicates}and: "the room lights in an apartment to be on"