Skip to content

armgit / core

Public Imported from GitHub
0

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

test robustness

Rich Turner94f273d5e5a0
diff --git a/test/src/test/groovy/org/openremote/test/protocol/TcpClientTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/TcpClientTest.groovy
index 0fdeb2502..5d4b1e6a4 100644
--- a/test/src/test/groovy/org/openremote/test/protocol/TcpClientTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/protocol/TcpClientTest.groovy
@@ -91,6 +91,7 @@ class TcpClientTest extends Specification implements ManagerContainerTrait {
conditions.eventually {
assert client.connectionStatus == ConnectionStatus.CONNECTED
assert connectionStatus == ConnectionStatus.CONNECTED
+ assert echoServer.allChannels.size() == 1
}
when: "the server sends a message"
@@ -160,6 +161,7 @@ class TcpClientTest extends Specification implements ManagerContainerTrait {
conditions.eventually {
assert client.connectionStatus == ConnectionStatus.CONNECTED
assert connectionStatus == ConnectionStatus.CONNECTED
+ assert echoServer.allChannels.size() == 1
}
when: "the server sends a message"