mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Update futures-mio tests
This commit is contained in:
parent
5ab323e5c2
commit
9c309af597
@ -43,7 +43,7 @@ fn chain_clients() {
|
|||||||
read_to_end(a.chain(b).chain(c), Vec::new())
|
read_to_end(a.chain(b).chain(c), Vec::new())
|
||||||
});
|
});
|
||||||
|
|
||||||
let data = t!(l.run(copied));
|
let (_, data) = t!(l.run(copied));
|
||||||
t.join().unwrap();
|
t.join().unwrap();
|
||||||
|
|
||||||
assert_eq!(data, b"foo bar baz");
|
assert_eq!(data, b"foo bar baz");
|
||||||
|
@ -37,7 +37,7 @@ fn limit() {
|
|||||||
read_to_end(a.take(4), Vec::new())
|
read_to_end(a.take(4), Vec::new())
|
||||||
});
|
});
|
||||||
|
|
||||||
let data = t!(l.run(copied));
|
let (_, data) = t!(l.run(copied));
|
||||||
t.join().unwrap();
|
t.join().unwrap();
|
||||||
|
|
||||||
assert_eq!(data, b"foo ");
|
assert_eq!(data, b"foo ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user