diff --git a/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats b/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats index d10ed95ce..0b0d7678e 100644 --- a/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats +++ b/tests/integration/kubernetes/k8s-sandbox-vcpus-allocation.bats @@ -21,9 +21,11 @@ setup() { # Create the pods kubectl create -f "${pod_config_dir}/pod-sandbox-vcpus-allocation.yaml" + # Wait for completion + kubectl wait --for=jsonpath='{.status.phase}'=Succeeded --timeout=$timeout pod --all + # Check the pods for i in {0..2}; do - kubectl wait --for=jsonpath='{.status.conditions[0].reason}'=PodCompleted --timeout=$timeout pod ${pods[$i]} [ `kubectl logs ${pods[$i]}` -eq ${expected_vcpus[$i]} ] done }