From 26a7ee81bfece268e62d29ebf425cdbb7a2d4d4c Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Tue, 23 Oct 2018 11:57:40 -0700 Subject: [PATCH] [e2e test] append key value to resources instead of pointer --- pkg/fuzz/gcp.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/fuzz/gcp.go b/pkg/fuzz/gcp.go index f731907db8..8722c73b3a 100644 --- a/pkg/fuzz/gcp.go +++ b/pkg/fuzz/gcp.go @@ -104,7 +104,7 @@ type GCLBDeleteOptions struct { // CheckResourceDeletion checks the existance of the resources. Returns nil if // all of the associated resources no longer exist. func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options *GCLBDeleteOptions) error { - var resources []*meta.Key + var resources []meta.Key for k := range g.ForwardingRule { _, err := c.ForwardingRules().Get(ctx, &k) @@ -113,7 +113,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options return err } } else { - resources = append(resources, &k) + resources = append(resources, k) } } for k := range g.TargetHTTPProxy { @@ -123,7 +123,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options return err } } else { - resources = append(resources, &k) + resources = append(resources, k) } } for k := range g.TargetHTTPSProxy { @@ -133,7 +133,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options return err } } else { - resources = append(resources, &k) + resources = append(resources, k) } } for k := range g.URLMap { @@ -143,7 +143,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options return err } } else { - resources = append(resources, &k) + resources = append(resources, k) } } for k := range g.BackendService { @@ -159,7 +159,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options continue } } - resources = append(resources, &k) + resources = append(resources, k) } }