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

hil: ota: wait for firmware update state to propagate #526

Closed hasheddan closed 1 week ago

hasheddan commented 1 week ago

Introduces a short wait (2 seconds) for firmware update state changes to propagate. State changes are not guaranteed to be immediately reflected for a device after an OK response is received.

In the future, this stop-gap solution should be replaced by either polling in this test or synchronous behavior on the server. Currently the on-device test is waiting 7s between state updates, so the wait in this test must remain less than to avoid missing a state update.

github-actions[bot] commented 1 week ago

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

https://golioth-firmware-sdk-doxygen-dev--pr526-hil-ota-wait-p-7niba338.web.app

(expires Tue, 25 Jun 2024 13:29:36 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a9993e61697a3983f3479e468bcb0b616f9a0578

github-actions[bot] commented 1 week ago

Code Coverage

Type Coverage
lines 57.3% (1275 of 2225 lines)
functions 65.3% (126 of 193 functions)