From 9adfc04f75b5da352f0eb96d35d2734244bd6dc4 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Thu, 6 May 2021 17:29:10 +0200 Subject: [PATCH] tests: Wait for dnsmasq process to terminate Make sure the dnsmasq process terminates after we sent the kill signal. Signed-off-by: Sebastien Boeuf --- tests/integration.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index f4131a8ad..fd49a8107 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5417,6 +5417,7 @@ mod tests { let output = child.wait_with_output().unwrap(); let _ = child_dnsmasq.kill(); + let _ = child_dnsmasq.wait(); handle_child_output(r, &output); } @@ -5510,6 +5511,7 @@ mod tests { let output = child.wait_with_output().unwrap(); let _ = child_dnsmasq.kill(); + let _ = child_dnsmasq.wait(); handle_child_output(r, &output); } @@ -5591,6 +5593,7 @@ mod tests { let output = child.wait_with_output().unwrap(); let _ = child_dnsmasq.kill(); + let _ = child_dnsmasq.wait(); handle_child_output(r, &output); } @@ -5672,6 +5675,7 @@ mod tests { let output = child.wait_with_output().unwrap(); let _ = child_dnsmasq.kill(); + let _ = child_dnsmasq.wait(); handle_child_output(r, &output); } @@ -5751,6 +5755,7 @@ mod tests { let output = child.wait_with_output().unwrap(); let _ = child_dnsmasq.kill(); + let _ = child_dnsmasq.wait(); handle_child_output(r, &output); }