Closed hasheddan closed 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
Type | Coverage |
---|---|
lines | 57.3% (1275 of 2225 lines) |
functions | 65.3% (126 of 193 functions) |
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.