GRI-1950: Test: a device offline for a day keeps playing #150

Merged
voidgazer merged 1 commit from test/GRI-1950-offline-playback into dev 2026-11-13 02:48:09 +00:00
Member

GRI-1950: Test: a device offline for a day keeps playing

Adds the offline half of plan/client/offline-first.md: the_client_plays_from_its_cache_while_unplugged in crates/client/tests/sync_survives_restart.rs.

The fake server over a loopback WebSocket pushes a playlist and one media file, then the socket and listener are dropped — the device is unplugged. Playback then resolves the due item from the cache instead of falling back, across a 24h-simulated offline window.

Gates: scripts/local-gates.sh green on the branch (cargo fmt, clippy, test, doc tests, deny, frontend check/build).

Depends on: #41 (GRI-1899, Client SQLite cache and state).

GRI-1950: Test: a device offline for a day keeps playing Adds the offline half of `plan/client/offline-first.md`: `the_client_plays_from_its_cache_while_unplugged` in `crates/client/tests/sync_survives_restart.rs`. The fake server over a loopback WebSocket pushes a playlist and one media file, then the socket and listener are dropped — the device is unplugged. Playback then resolves the due item from the cache instead of falling back, across a 24h-simulated offline window. Gates: `scripts/local-gates.sh` green on the branch (cargo fmt, clippy, test, doc tests, deny, frontend check/build). Depends on: #41 (GRI-1899, Client SQLite cache and state).
test(client): add offline playback cache test
Some checks failed
CI / the pre-push hook (pull_request) Successful in 8s
CI / cargo fmt (pull_request) Successful in 8s
CI / cargo deny advisories (pull_request) Failing after 1m27s
CI / cargo deny (pull_request) Successful in 1m29s
CI / cargo clippy (pull_request) Successful in 1m37s
CI / repository boundary (pull_request) Successful in 24s
CI / frontend-web (pull_request) Successful in 1m7s
CI / cargo test (pull_request) Successful in 5m47s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 3s
3a43c05e30
A device unplugged for 24h keeps playing its playlist from the cache it
already holds, instead of falling back to the waiting screen.
voidgazer deleted branch test/GRI-1950-offline-playback 2026-11-13 02:48:10 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!150
No description provided.