From 26550601204a18fe54f81236a53b72ece6a8e86e Mon Sep 17 00:00:00 2001 From: Saylor Berman Date: Wed, 29 May 2024 10:47:04 -0600 Subject: [PATCH] Fix test --- tests/suite/client_settings_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/suite/client_settings_test.go b/tests/suite/client_settings_test.go index 2619fc2a8..26ef6fc4f 100644 --- a/tests/suite/client_settings_test.go +++ b/tests/suite/client_settings_test.go @@ -242,7 +242,6 @@ func waitForClientSettingsAncestorStatus( 500*time.Millisecond, true, /* poll immediately */ func(ctx context.Context) (bool, error) { - var pol ngfAPI.ClientSettingsPolicy if err := k8sClient.Get(ctx, policyNsname, &pol); err != nil { @@ -261,7 +260,7 @@ func waitForClientSettingsAncestorStatus( ancestor := pol.Status.Ancestors[0] - if err := ancestorMustEqualTargetRef(ancestor, pol.GetTargetRef(), policyNsname.Namespace); err != nil { + if err := ancestorMustEqualTargetRef(ancestor, pol.GetTargetRefs()[0], policyNsname.Namespace); err != nil { return false, err }