updated test.
All checks were successful
MoreThanText/morethantext/pipeline/head This commit looks good
All checks were successful
MoreThanText/morethantext/pipeline/head This commit looks good
This commit is contained in:
parent
e77ed83d84
commit
9d30dab87d
11
src/queue.rs
11
src/queue.rs
@ -38,9 +38,16 @@ mod messages {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn from_sender() {
|
fn from_sender() {
|
||||||
let (tx, _) = channel();
|
let (tx, rx) = channel();
|
||||||
match tx.into() {
|
match tx.into() {
|
||||||
Message::Register(_) => {}
|
Message::Register(result) => {
|
||||||
|
let (req, _) = empty_request();
|
||||||
|
result.send(req.into()).unwrap();
|
||||||
|
match rx.recv().unwrap() {
|
||||||
|
Message::Req(_) => {}
|
||||||
|
_ => unreachable!("should have been a request"),
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => unreachable!("should have been a register"),
|
_ => unreachable!("should have been a register"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user