mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Check some errors that we were letting slip silently by.
This commit is contained in:
parent
17e36b02f4
commit
d2fec95dda
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user