Skip to content

Commit

Permalink
test: Update test to consider priority
Browse files Browse the repository at this point in the history
  • Loading branch information
mantono committed Dec 7, 2023
1 parent 791643f commit 5b26b00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,20 +281,20 @@ mod tests {
let send1 = send0.clone();

thread::spawn(move || {
send0.clone().offer(32).unwrap();
send0.clone().offer(1).unwrap();
})
.join()
.unwrap();

thread::spawn(move || {
send1.clone().offer(32).unwrap();
send1.clone().offer(2).unwrap();
})
.join()
.unwrap();

thread::spawn(move || {
assert_eq!(Ok(32), rec.poll());
assert_eq!(Ok(32), rec.poll());
assert_eq!(Ok(2), rec.poll());
assert_eq!(Ok(1), rec.poll());
});
}

Expand Down

0 comments on commit 5b26b00

Please sign in to comment.