Commit ec2c9632 authored by jayunit100's avatar jayunit100

Skip rather than fail networking tests on single node

parent 1085ce60
...@@ -448,7 +448,7 @@ func (config *NetworkingTestConfig) setup(selector map[string]string) { ...@@ -448,7 +448,7 @@ func (config *NetworkingTestConfig) setup(selector map[string]string) {
// fall back to legacy IPs // fall back to legacy IPs
config.ExternalAddrs = NodeAddresses(nodeList, api.NodeLegacyHostIP) 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 config.Nodes = nodeList.Items
By("Creating the service on top of the pods in kubernetes") By("Creating the service on top of the pods in kubernetes")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment