From 4a92c4d4b6f5fb0e774634a1cfcdf98a6512d631 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 18 Dec 2016 23:36:40 -0800 Subject: [PATCH] process: Tweak drop_kills test --- tests/stdio.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/stdio.rs b/tests/stdio.rs index 8109af19c..1235072c6 100644 --- a/tests/stdio.rs +++ b/tests/stdio.rs @@ -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]