Skip to content

Commit

Permalink
OOM failover test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Drobek authored and ryanemerson committed Apr 12, 2024
1 parent 7821633 commit 61bad91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/infinispan/failover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61bad91

Please sign in to comment.