Skip to content

armgit / core

Public Imported from GitHub
0

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

Minor test improvement

Rich Turnerb1d552a3170b
diff --git a/project.gradle b/project.gradle
index 2fc3b230c..5142a7421 100644
--- a/project.gradle
+++ b/project.gradle
@@ -50,7 +50,7 @@ if (project == rootProject) {
moduleName = getProject().idea.module.name + (isCustomProject() ? ".openremote.manager.main" : ".manager.main")
}
"Test Setup"(Application) {
- moduleName = getProject().idea.module.name + (isCustomProject() ? ".openremote.test.main" : ".test.main")
+ moduleName = getProject().idea.module.name + (isCustomProject() ? ".openremote.setup.main" : ".setup.main")
}
"Empty with Proxy"(Application) {
moduleName = getProject().idea.module.name + (isCustomProject() ? ".openremote.manager.main" : ".manager.main")
@@ -60,7 +60,7 @@ if (project == rootProject) {
]
}
"Test Setup with Proxy"(Application) {
- moduleName = getProject().idea.module.name + (isCustomProject() ? ".openremote.test.main" : ".test.main")
+ moduleName = getProject().idea.module.name + (isCustomProject() ? ".openremote.setup.main" : ".setup.main")
envs = [
WEBSERVER_LISTEN_HOST: "0.0.0.0",
EXTERNAL_URL: "https://localhost:8443"
diff --git a/test/src/test/groovy/org/openremote/test/gateway/GatewayTest.groovy b/test/src/test/groovy/org/openremote/test/gateway/GatewayTest.groovy
index ef34f3945..8cb833e11 100644
--- a/test/src/test/groovy/org/openremote/test/gateway/GatewayTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/gateway/GatewayTest.groovy
@@ -633,8 +633,7 @@ class GatewayTest extends Specification implements ManagerContainerTrait {
and: "the local manager should have sent an asset read request"
conditions.eventually {
assert clientReceivedMessages.size() >= 1
- assert clientReceivedMessages[0].startsWith(EventRequestResponseWrapper.MESSAGE_PREFIX)
- assert clientReceivedMessages[0].contains("read-assets")
+ assert clientReceivedMessages.find {it.startsWith(EventRequestResponseWrapper.MESSAGE_PREFIX) && it.contains("read-assets")} != null
}
when: "the previously received messages are cleared"