@@ -130,12 +130,12 @@ var _ = SIGDescribe("LimitRange", func() {
130
130
ginkgo .By ("Failing to create a Pod with less than min resources" )
131
131
pod = f .NewTestPod (podName , getResourceList ("10m" , "50Mi" , "50Gi" ), v1.ResourceList {})
132
132
pod , err = f .ClientSet .CoreV1 ().Pods (f .Namespace .Name ).Create (pod )
133
- gomega . Expect (err ). To ( gomega . HaveOccurred () )
133
+ framework . ExpectError (err )
134
134
135
135
ginkgo .By ("Failing to create a Pod with more than max resources" )
136
136
pod = f .NewTestPod (podName , getResourceList ("600m" , "600Mi" , "600Gi" ), v1.ResourceList {})
137
137
pod , err = f .ClientSet .CoreV1 ().Pods (f .Namespace .Name ).Create (pod )
138
- gomega . Expect (err ). To ( gomega . HaveOccurred () )
138
+ framework . ExpectError (err )
139
139
140
140
ginkgo .By ("Updating a LimitRange" )
141
141
newMin := getResourceList ("9m" , "49Mi" , "49Gi" )
@@ -158,7 +158,7 @@ var _ = SIGDescribe("LimitRange", func() {
158
158
ginkgo .By ("Failing to create a Pod with more than max resources" )
159
159
pod = f .NewTestPod (podName , getResourceList ("600m" , "600Mi" , "600Gi" ), v1.ResourceList {})
160
160
pod , err = f .ClientSet .CoreV1 ().Pods (f .Namespace .Name ).Create (pod )
161
- gomega . Expect (err ). To ( gomega . HaveOccurred () )
161
+ framework . ExpectError (err )
162
162
163
163
ginkgo .By ("Deleting a LimitRange" )
164
164
err = f .ClientSet .CoreV1 ().LimitRanges (f .Namespace .Name ).Delete (limitRange .Name , metav1 .NewDeleteOptions (30 ))
0 commit comments