Skip to content

Commit ec1f4a4

Browse files
debug-itoToshio Ito
authored andcommitted
mpmc: make a test name more specific.
1 parent 11c9bd3 commit ec1f4a4

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
@@ -568,13 +568,13 @@ mod tests {
568568
}
569569

570570
#[test]
571-
fn blocking() {
571+
fn drain_at_pos255() {
572572
let q = Q2::new();
573573
for _ in 0..255 {
574574
q.enqueue(0).unwrap();
575575
q.dequeue();
576576
}
577577
// this should not block forever
578-
q.dequeue();
578+
assert_eq!(q.dequeue(), None);
579579
}
580580
}

0 commit comments

Comments
 (0)