Skip to content

Commit

Permalink
Fix OOMKilled test
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Aug 2, 2024
1 parent 4eaec8d commit 22d7ff9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/validate/container_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,10 @@ var _ = framework.KubeDescribe("Container OOM", func() {
state := getContainerStatus(rc, containerID)

By("exit code is 137")
//nolint:ginkgolinter // This cannot be fixed right now since it introduces a behavioral change. See: https://github.com/cri-o/cri-o/issues/8411
Expect(state.ExitCode, int32(137))
Expect(state.ExitCode).To(BeEquivalentTo(137))

By("reason is OOMKilled")
//nolint:ginkgolinter // This cannot be fixed right now since it introduces a behavioral change. See: https://github.com/cri-o/cri-o/issues/8411
Expect(state.Reason, "OOMKilled")
Expect(state.Reason).To(Equal("OOMKilled"))
})
})
})
Expand Down

0 comments on commit 22d7ff9

Please sign in to comment.