From 2af30086858d104dcb0ec87383996c36bcaa7371 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 18 Mar 2022 09:02:13 +1000 Subject: [PATCH] Revert Option process handling --- zebra-test/src/command.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zebra-test/src/command.rs b/zebra-test/src/command.rs index 68174ebb589..d89361e223e 100644 --- a/zebra-test/src/command.rs +++ b/zebra-test/src/command.rs @@ -751,9 +751,7 @@ impl ContextFrom<&mut TestChild> 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();