Skip to content

Commit

Permalink
Increase maximum number of tries in WaitForTracingPolicy
Browse files Browse the repository at this point in the history
After merging #2506 it seems that
there are cases where 10 * 1 sec is not enough when waiting for a
tracing policy to load (mainly in e2e tests).

This patch increases that to 20 * 1 sec to avoid timeouts.

Signed-off-by: Anastasios Papagiannis <[email protected]>
  • Loading branch information
tpapagian committed Jun 12, 2024
1 parent dde4305 commit 23b041e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/helpers/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func WaitForTracingPolicy(ctx context.Context, policyName string) error {
return fmt.Errorf("failed to find tetragon grpc forwarded ports")
}

maxTries := 10
maxTries := 20
for podName, grpcPort := range tetraPorts {
addr := fmt.Sprintf("127.0.0.1:%d", grpcPort)
// NB(kkourt): maybe it would make sense to cache the grpc connections in the
Expand Down

0 comments on commit 23b041e

Please sign in to comment.