From eb31403ac7bdd0a83035eefc31cbd413fc264b21 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 9 Dec 2020 09:35:29 -0600 Subject: [PATCH] bridge: fix testcase to check addresses we care about Instead of checking the total number of addresses, which might vary depending on the IPv6 Privacy Address settings of the distro being used, just check that we have the number of non-link-local addresses we expect. Signed-off-by: Dan Williams --- plugins/main/bridge/bridge_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/main/bridge/bridge_test.go b/plugins/main/bridge/bridge_test.go index 676aa6bc..513b0dc9 100644 --- a/plugins/main/bridge/bridge_test.go +++ b/plugins/main/bridge/bridge_test.go @@ -776,7 +776,6 @@ func (tester *testerV03x) cmdAddTest(tc testCase, dataDir string) (*current.Resu Expect(err).NotTo(HaveOccurred()) Expect(len(addrs)).To(Equal(len(expCIDRsV4))) addrs, err = netlink.AddrList(link, netlink.FAMILY_V6) - Expect(len(addrs)).To(Equal(len(expCIDRsV6) + 1)) //add one for the link-local Expect(err).NotTo(HaveOccurred()) // Ignore link local address which may or may not be // ready when we read addresses.