Merge pull request #116082 from mimowo/fix-oomkiller-test

Fix the flaky OOMKiller test by sleep at start
This commit is contained in:
Kubernetes Prow Robot 2023-02-28 14:53:37 -08:00 committed by GitHub
commit 0469455ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ func getOOMTargetContainer(name string) v1.Container {
"sh",
"-c",
// use the dd tool to attempt to allocate 20M in a block which exceeds the limit
"dd if=/dev/zero of=/dev/null bs=20M",
"sleep 5 && dd if=/dev/zero of=/dev/null bs=20M",
},
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{