mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Fix the flaky OOMKiller test by sleep at start
This commit is contained in:
parent
0e077bb7ac
commit
36eef0600d
@ -110,7 +110,7 @@ func getOOMTargetContainer(name string) v1.Container {
|
|||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-c",
|
||||||
// use the dd tool to attempt to allocate 20M in a block which exceeds the limit
|
// 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{
|
Resources: v1.ResourceRequirements{
|
||||||
Requests: v1.ResourceList{
|
Requests: v1.ResourceList{
|
||||||
|
Loading…
Reference in New Issue
Block a user