Skip to content

Commit

Permalink
fix: increase waiting for agent to report healthy to 90 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Aug 13, 2024
1 parent ae704f9 commit 0a82981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/integration/kubernetes_agent_standalone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ func deployK8SAgent(t *testing.T, ctx context.Context, client klient.Client, obj
command := []string{"elastic-agent", "status"}
var stdout, stderr bytes.Buffer
var agentHealthyErr error
// we will wait maximum 60 seconds for the agent to report healthy
for i := 0; i < 60; i++ {
// we will wait maximum 90 seconds for the agent to report healthy
for i := 0; i < 90; i++ {
stdout.Reset()
stderr.Reset()
agentHealthyErr = client.Resources().ExecInPod(ctx, namespace, agentPodName, "elastic-agent-standalone", command, &stdout, &stderr)
Expand Down

0 comments on commit 0a82981

Please sign in to comment.