From 17a3612b368cd633e9b1f80a21c2ce5be4223674 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 20 Oct 2020 19:51:47 +1000 Subject: [PATCH] Remove a redundant condition in expect_stdout When the loop exits, either the process has stopped running, or the deadline has passed. If the process is still running, we want to kill it. --- zebra-test/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-test/src/command.rs b/zebra-test/src/command.rs index b6b3255e..0323e454 100644 --- a/zebra-test/src/command.rs +++ b/zebra-test/src/command.rs @@ -231,7 +231,7 @@ impl TestChild { } } - if self.past_deadline() && self.is_running() { + if self.is_running() { // If the process exits between is_running and kill, we will see // spurious errors here. If that happens, ignore "no such process" // errors from kill.