From 61bad9147e8bc68cfa363f877f058b24fdad40a3 Mon Sep 17 00:00:00 2001 From: Pavel Drobek Date: Wed, 10 Apr 2024 15:07:08 +0200 Subject: [PATCH] OOM failover test fix --- test/e2e/infinispan/failover_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/infinispan/failover_test.go b/test/e2e/infinispan/failover_test.go index 7a93c1536..d67d67bea 100644 --- a/test/e2e/infinispan/failover_test.go +++ b/test/e2e/infinispan/failover_test.go @@ -64,7 +64,7 @@ func TestPodDegradationAfterOOM(t *testing.T) { if containerStatuses.LastTerminationState.Terminated != nil { terminatedPod := containerStatuses.LastTerminationState.Terminated - if terminatedPod.Reason == "OOMKilled" { + if terminatedPod.Reason == "OOMKilled" || terminatedPod.ExitCode == 137 { hasOOMhappened = true fmt.Printf("ExitCode='%d' Reason='%s' Message='%s'\n", terminatedPod.ExitCode, terminatedPod.Reason, terminatedPod.Message) break out