tests: k8s-policy-rc: print pod descriptions

Don't use local launched_pods variable in test_rc_policy(), because
teardown() needs to use this variable to print a description of the
pods, for debugging purposes.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai 2025-06-19 17:07:53 +00:00
parent 4f245df4a0
commit 62c9845623

View File

@ -67,7 +67,7 @@ test_rc_policy() {
# Wait for all the expected pods to be created.
local pod_creation_sleep="10"
local count=0
local launched_pods=()
launched_pods=()
while [ $count -lt 6 ] && [ "${#launched_pods[@]}" -ne "${number_of_replicas}" ]; do
bats_unbuffered_info "sleep count=${count}, launched ${#launched_pods[@]} pods, sleeping ${pod_creation_sleep}..."
sleep "${pod_creation_sleep}"