Skip to content

Commit 96317d5

Browse files
committed
Fix parity test
Apparently Parity is not reliable and Framing is thrown depending on the hardware instead.
1 parent f0dd076 commit 96317d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testsuite/tests/uart.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ mod tests {
240240

241241
unwrap!(nb::block!(serial_odd.write(b'x')));
242242
let result = nb::block!(serial_even.read());
243-
assert!(matches!(result, Err(Error::Parity)));
243+
// Note: I'm not really sure in what case Framing is thrown but not Parity
244+
// but it happens
245+
assert!(matches!(result, Err(Error::Parity | Error::Framing)));
244246

245247
// Finally restore serial devices in state.
246248
let (usart_slow, pins_slow) = serial_even.free();

0 commit comments

Comments
 (0)