From cc6e999f2a6a6224ea4ab8e733f4e1671029e9d6 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 25 Apr 2024 16:30:32 +0200 Subject: [PATCH] test/e2e: fix limits test When you run locally with a higher oom_score_adj then the one used in the test podman will print a warning and not set the oom lower then the current value. Thus use 999 as value which should only cause problems for users with oom_score_adj value of 1000 (max value) which seems unlikely. Signed-off-by: Paul Holzinger --- test/e2e/run_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index e6ed7b67b5..488fd6dcc4 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -718,10 +718,10 @@ USER bin`, BB) Expect(session).Should(ExitCleanly()) } - session = podmanTest.Podman([]string{"run", "--rm", "--oom-score-adj=111", fedoraMinimal, "cat", "/proc/self/oom_score_adj"}) + session = podmanTest.Podman([]string{"run", "--rm", "--oom-score-adj=999", fedoraMinimal, "cat", "/proc/self/oom_score_adj"}) session.WaitWithDefaultTimeout() Expect(session).Should(ExitCleanly()) - Expect(session.OutputToString()).To(Equal("111")) + Expect(session.OutputToString()).To(Equal("999")) currentOOMScoreAdj, err := os.ReadFile("/proc/self/oom_score_adj") Expect(err).ToNot(HaveOccurred())