From c29925435d672612c0793c06b333be16debc0b94 Mon Sep 17 00:00:00 2001 From: James Rhodes Date: Mon, 20 May 2024 16:41:10 +0100 Subject: [PATCH] Sleep for twice as long as previously in watchdog test, to allow for cloud connection in bridge Signed-off-by: James Rhodes --- .../tests/MQTT_health_check/health_tedge_mapper_c8y.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/RobotFramework/tests/MQTT_health_check/health_tedge_mapper_c8y.robot b/tests/RobotFramework/tests/MQTT_health_check/health_tedge_mapper_c8y.robot index bf6fec58ea3..fc229baace8 100644 --- a/tests/RobotFramework/tests/MQTT_health_check/health_tedge_mapper_c8y.robot +++ b/tests/RobotFramework/tests/MQTT_health_check/health_tedge_mapper_c8y.robot @@ -51,14 +51,14 @@ Watchdog does not kill mapper if it responds # Set the watchdog interval low so we don't have to wait long Execute Command sudo systemctl stop tedge-mapper-c8y.service Execute Command sudo systemctl stop tedge-watchdog.service - Execute Command cmd=sudo sed -i '10iWatchdogSec=5' /lib/systemd/system/tedge-mapper-c8y.service + Execute Command cmd=sudo sed -i '10iWatchdogSec=10' /lib/systemd/system/tedge-mapper-c8y.service Execute Command sudo systemctl daemon-reload Execute Command sudo systemctl start tedge-mapper-c8y.service Execute Command sudo systemctl start tedge-watchdog.service ${pid_before_healthcheck}= Service Should Be Running tedge-mapper-c8y # The watchdog should send a health check command while we wait - Sleep 10s + Sleep 20s ${pid_after_healthcheck}= Service Should Be Running tedge-mapper-c8y Should Have MQTT Messages topic=te/device/main/service/tedge-mapper-c8y/cmd/health/check minimum=1