Skip to content

Commit 22d7ff9

Browse files
committed
Fix OOMKilled test
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 4eaec8d commit 22d7ff9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: pkg/validate/container_linux.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,10 @@ var _ = framework.KubeDescribe("Container OOM", func() {
159159
state := getContainerStatus(rc, containerID)
160160

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

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

0 commit comments

Comments
 (0)