Skip to content

armgit / core

Public Imported from GitHub
0

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

Change loopback address in UDP test to get it passing on MacOS

Michal Rutka9c624c0cc9a7
diff --git a/mvp/aws-cloudformation.template.yml b/mvp/aws-cloudformation.template.yml
index 83f2c4a9c..fcc99e0ed 100644
--- a/mvp/aws-cloudformation.template.yml
+++ b/mvp/aws-cloudformation.template.yml
@@ -144,7 +144,9 @@ Resources:
docker-compose -f mvp-docker-compose.yml -p openremote up -d
echo USER ${AccessKeys} > access.txt
echo SECRET ${AccessKeys.SecretAccessKey} >> access.txt
- echo PASSWORD $(or configure_aws --secret ${AccessKeys.SecretAccessKey} --quiet) >> access.txt
+ echo EMAIL_PASSWORD=$(or configure_aws --secret ${AccessKeys.SecretAccessKey} --quiet) >> access.txt
+ echo EMAIL_USER=$EMAIL_USER >> access.txt
+ echo EMAIL_HOST=$EMAIL_HOST >> access.txt
InstanceSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
diff --git a/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy b/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy
index 01134f9cd..183e15f4a 100644
--- a/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy
+++ b/test/src/test/groovy/org/openremote/test/protocol/udp/UdpClientTest.groovy
@@ -105,7 +105,7 @@ class UdpClientTest extends Specification implements ManagerContainerTrait {
}
when: "the server sends a broadcast message"
- echoServer.sendMessage("Hello world", SocketUtils.socketAddress("127.255.255.255", clientPort))
+ echoServer.sendMessage("Hello world", SocketUtils.socketAddress("127.0.0.1", clientPort))
then: "we should receive the message"
conditions.eventually {