Skip to content

Commit

Permalink
Make more robust a test detecting restart (#2530)
Browse files Browse the repository at this point in the history
Signed-off-by: Didier Wenzek <[email protected]>
  • Loading branch information
didier-wenzek authored Dec 15, 2023
1 parent a25d41f commit 04db825
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

1 comment on commit 04db825

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
372 1 3 373 99.73 58m58.304s

Failed Tests

Name Message ⏱️ Duration Suite
Nested child device service support sending simple measurements Expected total device services count to be greater than or equal to 1 32.303 s Child Device Telemetry

Please sign in to comment.