Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Bug fix for MQTT test

Rich Turner2af52146ce03
diff --git a/test/src/test/groovy/org/openremote/test/mqtt/MqttBrokerTest.groovy b/test/src/test/groovy/org/openremote/test/mqtt/MqttBrokerTest.groovy
index fd9047468..15aa9cb8f 100644
--- a/test/src/test/groovy/org/openremote/test/mqtt/MqttBrokerTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/mqtt/MqttBrokerTest.groovy
@@ -244,7 +244,7 @@ class MqttBrokerTest extends Specification implements ManagerContainerTrait {
}
when: "a mqtt client publishes to an asset attribute"
- topic = "attribute/" + managerTestSetup.apartment1HallwayId
+ topic = "attribute/" + managerTestSetup.apartment1HallwayId + "/lights"
payload = Values.asJSON(Values.createJsonObject().put("lights", false)).orElse(null)
remainingLength = 2 + topic.size() + payload.length()