mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 08:17:01 +00:00
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:
parent
4f245df4a0
commit
62c9845623
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user