Skip to content

Commit

Permalink
kubernetes: Use a timeout for "OOM events for pods" test
Browse files Browse the repository at this point in the history
The default timeout has been increased recently and adjusted for some
tests that were failing.

This is a try-and-error kind of process and we'll keep adjusting such
timeouts accordingly to the errors we see coming from the tests.

Fixes: kata-containers#2864

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
  • Loading branch information
fidencio committed May 6, 2021
1 parent 69e775d commit 5414eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/kubernetes/k8s-oom.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ setup() {
kubectl create -f "${pod_config_dir}/pod-oom.yaml"

# Check pod creation
kubectl wait --for=condition=Ready pod "$pod_name"
kubectl wait --for=condition=Ready --timeout=$timeout pod "$pod_name"

# Check if OOMKilled
cmd="kubectl get pods "$pod_name" -o yaml | yq r - 'status.containerStatuses[0].state.terminated.reason' | grep OOMKilled"
Expand Down

0 comments on commit 5414eb2

Please # to comment.