Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjberman committed May 29, 2024
1 parent 54b919e commit 2655060
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/suite/client_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

Expand Down

0 comments on commit 2655060

Please sign in to comment.