Skip to content

Commit 1f12b74

Browse files
authored
Merge pull request inspektor-gadget#2785 from inspektor-gadget/burak/intergration/oomkill
TestRunTraceOOMKill: Add sleep after starting ig/kubectl-gadget
2 parents a850bec + 5781fce commit 1f12b74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

integration/k8s/run_trace_oomkill_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ spec:
9191

9292
commands := []TestStep{
9393
traceOOMKillCmd,
94+
// Wait to ensure ig or kubectl-gadget has downloaded the image and started it
95+
// before we start the test pod, which only gives us 1 event to trace (oneshot)
96+
SleepForSecondsCommand(10),
9497
&Command{
9598
Name: "RunOomkillTestPod",
9699
Cmd: fmt.Sprintf("echo '%s' | kubectl apply -f -", limitPodYaml),

0 commit comments

Comments
 (0)