Flaky test: fluxer-ui window_input_updates_last_input (last_input() <= now) #709

Open
opened 2026-11-15 19:48:13 +00:00 by charles · 0 comments
Owner

crates/fluxer-ui/tests/app.rs window_input_updates_last_input failed once in a local FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci on serveradmin 8c58a73f (plus Server admin 3, which only touches fluxer-proto):

panicked at crates/fluxer-ui/tests/app.rs:49:9:
assertion failed: last_input() <= Instant::now()

Likely cause: last_input() is rebuilt as input_origin() + Duration::from_micros(micros); the stored microseconds can be rounded so the rebuilt instant lands a little after an Instant::now() taken right after (the test allows 1 µs slack on the lower bound only). Steps: run the test repeatedly under load; it fails rarely. Not fixed in #669.

`crates/fluxer-ui/tests/app.rs` `window_input_updates_last_input` failed once in a local `FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci` on serveradmin 8c58a73f (plus Server admin 3, which only touches fluxer-proto): ``` panicked at crates/fluxer-ui/tests/app.rs:49:9: assertion failed: last_input() <= Instant::now() ``` Likely cause: `last_input()` is rebuilt as `input_origin() + Duration::from_micros(micros)`; the stored microseconds can be rounded so the rebuilt instant lands a little after an `Instant::now()` taken right after (the test allows 1 µs slack on the lower bound only). Steps: run the test repeatedly under load; it fails rarely. Not fixed in #669.
Sign in to join this conversation.
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
charles/fluxer-native#709
No description provided.