diff --git a/tests/integration/checkpoint.bats b/tests/integration/checkpoint.bats index bb3f9617c..e7b5a06d8 100644 --- a/tests/integration/checkpoint.bats +++ b/tests/integration/checkpoint.bats @@ -30,6 +30,9 @@ function delete_netns() { # Delete the namespace only if the ns_name variable is set. [ -v ns_name ] && ip netns del "$ns_name" + + unset ns_name + unset ns_path } function setup() { diff --git a/tests/integration/netdev.bats b/tests/integration/netdev.bats index 6dddbab07..25b36e5d5 100644 --- a/tests/integration/netdev.bats +++ b/tests/integration/netdev.bats @@ -20,6 +20,9 @@ function setup_netns() { function delete_netns() { # Delete the namespace only if the ns_name variable is set. [ -v ns_name ] && ip netns del "$ns_name" + + unset ns_name + unset ns_path } function setup() {