Fix network test failure
@@ -181,7 +181,7 @@ function teardown() {
# ensure that the server cleaned up sandbox networking if the sandbox
# failed after network setup
- rm -f /var/lib/cni/networks/crionet_test_args/last_reserved_ip
+ rm -f /var/lib/cni/networks/crionet_test_args/last_reserved_ip*
num_allocated=$(ls /var/lib/cni/networks/crionet_test_args | wc -l)
[[ "${num_allocated}" == "0" ]]
}
@@ -195,7 +195,7 @@ function teardown() {
# ensure that the server cleaned up sandbox networking if the sandbox
# failed during network setup after the CNI plugin itself succeeded
- rm -f /var/lib/cni/networks/crionet_test_args/last_reserved_ip
+ rm -f /var/lib/cni/networks/crionet_test_args/last_reserved_ip*
num_allocated=$(ls /var/lib/cni/networks/crionet_test_args | wc -l)
[[ "${num_allocated}" == "0" ]]
}
