Skip to content

Commit

Permalink
chore: rename TracingPolicy function
Browse files Browse the repository at this point in the history
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
  • Loading branch information
sadath-12 committed Dec 26, 2023
1 parent a250225 commit f043f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/helpers/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit f043f31

Please # to comment.