From 23b041e4799b3f3a7fee189e984266a5775b0489 Mon Sep 17 00:00:00 2001 From: Anastasios Papagiannis Date: Wed, 12 Jun 2024 16:07:15 +0000 Subject: [PATCH] Increase maximum number of tries in WaitForTracingPolicy After merging https://github.com/cilium/tetragon/pull/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 --- tests/e2e/helpers/grpc/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/helpers/grpc/grpc.go b/tests/e2e/helpers/grpc/grpc.go index f2c4615ae15..7d7b6d939e4 100644 --- a/tests/e2e/helpers/grpc/grpc.go +++ b/tests/e2e/helpers/grpc/grpc.go @@ -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