Check some errors that we were letting slip silently by.

This commit is contained in:
Brendan Burns 2015-11-04 11:18:35 -08:00
parent 17e36b02f4
commit d2fec95dda

View File

@ -317,6 +317,7 @@ var _ = Describe("Services", func() {
defer func() { expectNoError(stopServeHostnameService(c, ns, "service1")) }()
podNames1, svc1IP, err := startServeHostnameService(c, ns, "service1", servicePort, numPods)
Expect(err).NotTo(HaveOccurred())
hosts, err := NodeSSHHosts(c)
Expect(err).NotTo(HaveOccurred())
@ -339,6 +340,7 @@ var _ = Describe("Services", func() {
// Create a new service and check if it's not reusing IP.
defer func() { expectNoError(stopServeHostnameService(c, ns, "service2")) }()
podNames2, svc2IP, err := startServeHostnameService(c, ns, "service2", servicePort, numPods)
Expect(err).NotTo(HaveOccurred())
if svc1IP == svc2IP {
Failf("VIPs conflict: %v", svc1IP)