mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Use framework.ExpectEqual()
This commit is contained in:
parent
59f766fe0a
commit
93b822d5a2
@ -1239,7 +1239,7 @@ var _ = SIGDescribe("Services", func() {
|
|||||||
e2elog.Failf("Created service with conflicting NodePort: %v", result2)
|
e2elog.Failf("Created service with conflicting NodePort: %v", result2)
|
||||||
}
|
}
|
||||||
expectedErr := fmt.Sprintf("%d.*port is already allocated", port.NodePort)
|
expectedErr := fmt.Sprintf("%d.*port is already allocated", port.NodePort)
|
||||||
framework.ExpectEqual(fmt.Sprintf("%v", err), gomega.MatchRegexp(expectedErr))
|
gomega.Expect(fmt.Sprintf("%v", err)).To(gomega.MatchRegexp(expectedErr))
|
||||||
|
|
||||||
ginkgo.By("deleting service " + serviceName1 + " to release NodePort")
|
ginkgo.By("deleting service " + serviceName1 + " to release NodePort")
|
||||||
err = t.DeleteService(serviceName1)
|
err = t.DeleteService(serviceName1)
|
||||||
|
Loading…
Reference in New Issue
Block a user