Skip to content

Commit

Permalink
Sleep for twice as long as previously in watchdog test, to allow for …
Browse files Browse the repository at this point in the history
…cloud connection in bridge

Signed-off-by: James Rhodes <[email protected]>
  • Loading branch information
jarhodes314 committed May 20, 2024
1 parent 64020e3 commit c299254
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c299254

Please sign in to comment.