Fix line-frames test

This commit is contained in:
Alex Crichton 2016-11-08 17:59:37 -08:00
parent c459b9835c
commit 45fc13071c

View File

@ -57,10 +57,10 @@ fn echo() {
assert_eq!(amt, 2);
assert_eq!(&buf[..2], b"a\n");
let (client, _) = core.run(write_all(client, b"\nb\n")).unwrap();
let (client, _) = core.run(write_all(client, b"\n")).unwrap();
let (client, buf, amt) = core.run(read(client, buf)).unwrap();
assert_eq!(amt, 3);
assert_eq!(&buf[..3], b"\nb\n");
assert_eq!(amt, 1);
assert_eq!(&buf[..1], b"\n");
let (client, _) = core.run(write_all(client, b"b")).unwrap();
client.shutdown(Shutdown::Write).unwrap();