You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
The snapshot test panic_verbose fails wrongfully most of the times, because it's output contains timing related numbers, which slightly change between runs.
- 22 │-(HOST) TRACE reading canary took 0.010s (104.18 KiB/s)+ 22 │+(HOST) TRACE reading canary took 0.013s (75.06 KiB/s)
You can reproduce this by connecting your computer to an nrf52-dk and executing cargo test -- --ignored.
Workaround
It is currently disabled, by marking it as #[should_panic].
Solution
Filter out the timing related numbers from the output. Either filter out the full lines, or, what would be preferable, replace just the numbers with a placeholder (e.g. #).
Problem
The snapshot test
panic_verbose
fails wrongfully most of the times, because it's output contains timing related numbers, which slightly change between runs.You can reproduce this by connecting your computer to an nrf52-dk and executing
cargo test -- --ignored
.Workaround
It is currently disabled, by marking it as
#[should_panic]
.Solution
Filter out the timing related numbers from the output. Either filter out the full lines, or, what would be preferable, replace just the numbers with a placeholder (e.g.
#
).The text was updated successfully, but these errors were encountered: