From 5fbeacabad25d55bfa9aaa8aa159defd8fd3477c Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Wed, 27 Jan 2021 14:44:45 -0800 Subject: [PATCH] tests: Remove manual delete of the TAP interface in test_tap_from_fd By using `net_util::open_tap` to create the TAP interface, the created interface will be deleted when the returned variable (`net_utils::Tap`) is dropped. Signed-off-by: Bo Chen --- tests/integration.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 24ac50032..9dfe781ef 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5724,11 +5724,6 @@ mod tests { let _ = child.kill(); let output = child.wait_with_output().unwrap(); - std::process::Command::new("bash") - .args(&["-c", "sudo ip tuntap del mode tap name chtap0"]) - .status() - .expect("Expected upping interface to work"); - handle_child_output(r, &output); } }