From bf131b2448cd2b6c0283a06559f0b16d9db675c7 Mon Sep 17 00:00:00 2001 From: Zachary Spar Date: Thu, 2 Jul 2026 11:04:51 -0400 Subject: [PATCH] kata-deploy: tweak teardown options Increase timeout for node wait condition to 300s, and add timeout for pod deletion. Signed-off-by: Zachary Spar --- tests/functional/kata-deploy/kata-deploy-lifecycle.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/kata-deploy/kata-deploy-lifecycle.bats b/tests/functional/kata-deploy/kata-deploy-lifecycle.bats index 4b88a254a5..0436afaf5e 100644 --- a/tests/functional/kata-deploy/kata-deploy-lifecycle.bats +++ b/tests/functional/kata-deploy/kata-deploy-lifecycle.bats @@ -200,8 +200,8 @@ EOF echo "# Uninstall complete, verifying cleanup..." >&3 # Wait for node to recover — containerd restart during cleanup may - # cause brief unavailability (especially on k3s/rke2). - kubectl wait nodes --timeout=120s --all --for condition=Ready=True + # cause brief unavailability (especially on k3s/rke2/microk8s). + kubectl wait nodes --timeout=300s --all --for condition=Ready=True # RuntimeClasses must be gone (filter out AKS-managed ones) local rc_count @@ -242,7 +242,7 @@ EOF teardown() { if [[ "${BATS_TEST_NAME}" == *"restart"* ]]; then - kubectl delete pod "${LIFECYCLE_POD_NAME}" --ignore-not-found=true --wait=false 2>/dev/null || true + kubectl delete pod "${LIFECYCLE_POD_NAME}" --ignore-not-found=true --timeout=120s 2>/dev/null || true fi }