From 36eef0600db87e3a13d470485a4431256b634be2 Mon Sep 17 00:00:00 2001 From: Michal Wozniak Date: Mon, 27 Feb 2023 08:15:46 +0100 Subject: [PATCH] Fix the flaky OOMKiller test by sleep at start --- test/e2e_node/oomkiller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/oomkiller_test.go b/test/e2e_node/oomkiller_test.go index 79fe547732c..6dfce311c2b 100644 --- a/test/e2e_node/oomkiller_test.go +++ b/test/e2e_node/oomkiller_test.go @@ -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{