golioth / golioth-firmware-sdk

Firmware SDK enabling any IoT device to connect to Golioth - the Universal Connector for IoT
https://golioth.io
Apache License 2.0
53 stars 11 forks source link

tests: hil: ota: wait for successful status report #501

Closed sam-golioth closed 1 month ago

sam-golioth commented 1 month ago

Previously, the test script was waiting on a string printed by the device before it reports it status, then waiting for a specific delay before retrieiving the reported status from the backend. Instead, the test script now waits for a string that is printed by the device after it receives an acknowledgement from the server that the status update has been posted successfully. This makes the timing of the test more explicit and should reduce timing related failures in CI.

github-actions[bot] commented 1 month ago

Visit the preview URL for this PR (updated for commit d023de1):

https://golioth-firmware-sdk-doxygen-dev--pr501-ota-hil-fix-xopy75ri.web.app

(expires Fri, 31 May 2024 17:32:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a9993e61697a3983f3479e468bcb0b616f9a0578

github-actions[bot] commented 1 month ago

Code Coverage

Type Coverage
lines 58.6% (1266 of 2159 lines)
functions 65.3% (126 of 193 functions)