Skip to content

Commit 68ca3df

Browse files
debug-itoToshio Ito
authored andcommitted
mpmc: test: add more assertions.
1 parent ec1f4a4 commit 68ca3df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mpmc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ mod tests {
571571
fn drain_at_pos255() {
572572
let q = Q2::new();
573573
for _ in 0..255 {
574-
q.enqueue(0).unwrap();
575-
q.dequeue();
574+
assert!(q.enqueue(0).is_ok());
575+
assert_eq!(q.dequeue(), Some(0));
576576
}
577577
// this should not block forever
578578
assert_eq!(q.dequeue(), None);

0 commit comments

Comments
 (0)