Skip to content

armgit / core

Public Imported from GitHub
0

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

Minor: improve test reliability

Rich Turner25ed57e3d3b1
diff --git a/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientTest.groovy
index cc6134aee..7edf72315 100644
--- a/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/protocol/websocket/WebsocketClientTest.groovy
@@ -130,6 +130,10 @@ class WebsocketClientTest extends Specification implements ManagerContainerTrait
assert connectionStatus == ConnectionStatus.CONNECTED
}
+ // TODO: Remove this once client supports some better connection logic
+ and: "some time passes to allow the connection to be fully initialised"
+ sleep(3000)
+
when: "we subscribe to attribute events produced by the server"
client.sendMessage(messageToString(EventSubscription.SUBSCRIBE_MESSAGE_PREFIX,
new EventSubscription(