mirror of
https://github.com/containers/podman.git
synced 2025-07-01 08:07:03 +08:00
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 <pholzing@redhat.com>
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user