Skip to content

Commit

Permalink
Revert Option<Child> process handling
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Mar 17, 2022
1 parent 3287be5 commit 2af3008
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zebra-test/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,9 +751,7 @@ impl<T> ContextFrom<&mut TestChild<T>> for Report {

// Reading test child process output could hang if the child process is still running,
// so kill it first.
if let Some(child) = source.child.as_mut() {
let _ = child.kill();
}
let _ = source.child.kill();

let mut stdout_buf = String::new();
let mut stderr_buf = String::new();
Expand Down

0 comments on commit 2af3008

Please sign in to comment.