mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 22:10:37 +00:00
mpmc: test: add more assertions.
This commit is contained in:
parent
ec1f4a4601
commit
68ca3df55a
@ -571,8 +571,8 @@ mod tests {
|
||||
fn drain_at_pos255() {
|
||||
let q = Q2::new();
|
||||
for _ in 0..255 {
|
||||
q.enqueue(0).unwrap();
|
||||
q.dequeue();
|
||||
assert!(q.enqueue(0).is_ok());
|
||||
assert_eq!(q.dequeue(), Some(0));
|
||||
}
|
||||
// this should not block forever
|
||||
assert_eq!(q.dequeue(), None);
|
||||
|
Loading…
x
Reference in New Issue
Block a user