From f043f3179bda59183bca22ff65d63e3588d280ff Mon Sep 17 00:00:00 2001 From: sadath-12 Date: Tue, 26 Dec 2023 11:57:18 +0530 Subject: [PATCH] chore: rename TracingPolicy function Signed-off-by: sadath-12 --- tests/e2e/helpers/grpc/grpc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/helpers/grpc/grpc.go b/tests/e2e/helpers/grpc/grpc.go index 532156faa59..f7c442e3597 100644 --- a/tests/e2e/helpers/grpc/grpc.go +++ b/tests/e2e/helpers/grpc/grpc.go @@ -41,7 +41,7 @@ func WaitForTracingPolicy(ctx context.Context, policyName string) error { client := tetragon.NewFineGuidanceSensorsClient(conn) for i := 0; i < maxTries; i++ { - err = waitForTracingPolicy(ctx, policyName, client) + err = ensureTracingPolicy(ctx, policyName, client) if err == nil { break } @@ -57,7 +57,7 @@ func WaitForTracingPolicy(ctx context.Context, policyName string) error { return nil } -func waitForTracingPolicy(ctx context.Context, policyName string, client tetragon.FineGuidanceSensorsClient) error { +func ensureTracingPolicy(ctx context.Context, policyName string, client tetragon.FineGuidanceSensorsClient) error { res, err := client.ListTracingPolicies(ctx, &tetragon.ListTracingPoliciesRequest{}) if err != nil { return err