We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de47db3 commit fbd007cCopy full SHA for fbd007c
testsuite/tests/uart.rs
@@ -163,11 +163,12 @@ mod tests {
163
defmt::info!("{}", c);
164
assert!(matches!(c, Err(Error::Framing)));
165
166
- // provoke an error (framing)
167
- nb::block!(tx_fast.write(b'a'));
+ // provoke an error (this does not seem to be absolutely deterministic
+ // and we've seen multiple error variants in the wild)
168
+ unwrap!(nb::block!(tx_fast.write(b'a')));
169
let c = nb::block!(rx_slow.read());
170
- assert!(matches!(c, Err(Error::Framing)));
171
+ assert!(matches!(c, Err(Error::Framing) | Err(Error::Noise)));
172
}
173
174
// TODO: Check the parity. But currently, there is no way to configure the parity
0 commit comments