From 5414eb215f721f1880066567aca5ce0b56041d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 6 May 2021 14:11:09 +0200 Subject: [PATCH] kubernetes: Use a timeout for "OOM events for pods" test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: #2864 Signed-off-by: Fabiano FidĂȘncio --- integration/kubernetes/k8s-oom.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/kubernetes/k8s-oom.bats b/integration/kubernetes/k8s-oom.bats index ef194a820..437d0120b 100644 --- a/integration/kubernetes/k8s-oom.bats +++ b/integration/kubernetes/k8s-oom.bats @@ -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"