process: Tweak drop_kills test

This commit is contained in:
Alex Crichton
2019-06-24 16:56:48 -07:00
committed by Ivan Petkov
parent 9680ecc109
commit 4a92c4d4b6
+1 -2
View File
@@ -101,10 +101,9 @@ fn drop_kills() {
let stdout = child.stdout().take().unwrap();
drop(child);
drop(lp.run(write_all(stdin, b"1234")));
let (_, output) = lp.run(read_to_end(stdout, Vec::new())).unwrap();
assert_eq!(output.len(), 0);
let err = lp.run(write_all(stdin, b"1234")).err().unwrap();
assert_eq!(err.kind(), io::ErrorKind::BrokenPipe);
}
#[test]