Skip to content

Commit

Permalink
kubectl logs test: use agnhost pause instaed of fixed duration sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTheElder committed May 22, 2024
1 parent 84a7f1e commit 12cbad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/kubectl/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ func testingDeployment(name, ns string, numberOfPods int32) appsv1.Deployment {
Name: "container-1",
Image: imageutils.GetE2EImage(imageutils.Agnhost),
Command: []string{"/bin/sh", "-c"},
Args: []string{"/agnhost logs-generator --log-lines-total 10 --run-duration 3s && sleep 300"},
Args: []string{"/agnhost logs-generator --log-lines-total 10 --run-duration 3s && /agnhost pause"},
},
{
Name: "container-2",
Image: imageutils.GetE2EImage(imageutils.Agnhost),
Command: []string{"/bin/sh", "-c"},
Args: []string{"/agnhost logs-generator --log-lines-total 20 --run-duration 3s && sleep 300"},
Args: []string{"/agnhost logs-generator --log-lines-total 20 --run-duration 3s && /agnhost pause"},
},
},
RestartPolicy: v1.RestartPolicyAlways,
Expand Down

0 comments on commit 12cbad2

Please sign in to comment.