From 04db8252cde4b96d970a06e094924d2b010ef599 Mon Sep 17 00:00:00 2001 From: Didier Wenzek Date: Fri, 15 Dec 2023 13:50:50 +0100 Subject: [PATCH] Make more robust a test detecting restart (#2530) Signed-off-by: Didier Wenzek --- .../tests/tedge_agent/workflows/custom_operation.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RobotFramework/tests/tedge_agent/workflows/custom_operation.robot b/tests/RobotFramework/tests/tedge_agent/workflows/custom_operation.robot index 518c030d716..2eaff30c239 100644 --- a/tests/RobotFramework/tests/tedge_agent/workflows/custom_operation.robot +++ b/tests/RobotFramework/tests/tedge_agent/workflows/custom_operation.robot @@ -40,7 +40,7 @@ Timeout An Action Trigger Agent Restart ${pid_before}= Execute Command sudo systemctl show --property MainPID tedge-agent Execute Command tedge mqtt pub --retain te/device/main///cmd/restart-tedge-agent/robot-1 '{"status":"init"}' - Should Have MQTT Messages te/device/main///cmd/restart-tedge-agent/robot-1 message_pattern=.*tedge-agent-restarted.* maximum=1 timeout=180 + Should Have MQTT Messages te/device/main///cmd/restart-tedge-agent/robot-1 message_pattern=.*tedge-agent-restarted.* minimum=1 timeout=300 ${pid_after}= Execute Command sudo systemctl show --property MainPID tedge-agent Should Not Be Equal ${pid_before} ${pid_after} msg=tedge-agent should have been restarted