Fix the flaky OOMKiller test by sleep at start

This commit is contained in:
Michal Wozniak 2023-02-27 08:15:46 +01:00
parent 0e077bb7ac
commit 36eef0600d

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{