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();