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.
#
).