diff --git a/test/e2e/framework/networking_utils.go b/test/e2e/framework/networking_utils.go index eb8e00e15ea..0c14f6dafd9 100644 --- a/test/e2e/framework/networking_utils.go +++ b/test/e2e/framework/networking_utils.go @@ -448,7 +448,7 @@ func (config *NetworkingTestConfig) setup(selector map[string]string) { // fall back to legacy IPs config.ExternalAddrs = NodeAddresses(nodeList, api.NodeLegacyHostIP) } - Expect(len(config.ExternalAddrs)).To(BeNumerically(">=", 2), fmt.Sprintf("At least two nodes necessary with an external or LegacyHostIP")) + SkipUnlessNodeCountIsAtLeast(2) config.Nodes = nodeList.Items By("Creating the service on top of the pods in kubernetes")