Skip to content

Commit 12cbad2

Browse files
committed
kubectl logs test: use agnhost pause instaed of fixed duration sleep
1 parent 84a7f1e commit 12cbad2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/kubectl/logs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ func testingDeployment(name, ns string, numberOfPods int32) appsv1.Deployment {
7575
Name: "container-1",
7676
Image: imageutils.GetE2EImage(imageutils.Agnhost),
7777
Command: []string{"/bin/sh", "-c"},
78-
Args: []string{"/agnhost logs-generator --log-lines-total 10 --run-duration 3s && sleep 300"},
78+
Args: []string{"/agnhost logs-generator --log-lines-total 10 --run-duration 3s && /agnhost pause"},
7979
},
8080
{
8181
Name: "container-2",
8282
Image: imageutils.GetE2EImage(imageutils.Agnhost),
8383
Command: []string{"/bin/sh", "-c"},
84-
Args: []string{"/agnhost logs-generator --log-lines-total 20 --run-duration 3s && sleep 300"},
84+
Args: []string{"/agnhost logs-generator --log-lines-total 20 --run-duration 3s && /agnhost pause"},
8585
},
8686
},
8787
RestartPolicy: v1.RestartPolicyAlways,

0 commit comments

Comments
 (0)