From 8314122382c4d642ac09b5c39c65eabc93a489c5 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Wed, 16 Aug 2023 08:18:11 +0000 Subject: [PATCH] e2e framework util subtle bug checking endpoints Change-Id: Ied14efcb75a45e3bbd5f76d4ee4c89703161df54 --- test/e2e/framework/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 407c9e60d79..f10e3254c01 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -478,7 +478,7 @@ func isIPv6Endpoint(e *v1.Endpoints) bool { continue } // Endpoints are single family, so it is enough to check only one address - return netutils.IsIPv6String(sub.Addresses[0].IP) + return netutils.IsIPv6String(addr.IP) } } // default to IPv4 an Endpoint without IP addresses