File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ var _ = SIGDescribe("DisruptionController", func() {
166
166
167
167
// Locate a running pod.
168
168
pod , err := locateRunningPod (cs , ns )
169
- gomega . Expect (err ). NotTo ( gomega . HaveOccurred () )
169
+ framework . ExpectNoError (err )
170
170
171
171
e := & policy.Eviction {
172
172
ObjectMeta : metav1.ObjectMeta {
@@ -205,7 +205,7 @@ var _ = SIGDescribe("DisruptionController", func() {
205
205
206
206
ginkgo .By ("First trying to evict a pod which shouldn't be evictable" )
207
207
pod , err := locateRunningPod (cs , ns )
208
- gomega . Expect (err ). NotTo ( gomega . HaveOccurred () )
208
+ framework . ExpectNoError (err )
209
209
210
210
waitForPodsOrDie (cs , ns , 3 ) // make sure that they are running and so would be evictable with a different pdb
211
211
e := & policy.Eviction {
@@ -223,7 +223,7 @@ var _ = SIGDescribe("DisruptionController", func() {
223
223
ginkgo .By ("Trying to evict the same pod we tried earlier which should now be evictable" )
224
224
waitForPodsOrDie (cs , ns , 3 )
225
225
err = cs .CoreV1 ().Pods (ns ).Evict (e )
226
- gomega . Expect (err ). NotTo ( gomega . HaveOccurred () ) // the eviction is now allowed
226
+ framework . ExpectNoError (err ) // the eviction is now allowed
227
227
})
228
228
})
229
229
You can’t perform that action at this time.
0 commit comments