Skip to content

Commit 73c2dae

Browse files
committed
replace test error checking with more readable way
1 parent 087bc13 commit 73c2dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/node/kubelet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ var _ = SIGDescribe("kubelet", func() {
411411

412412
ginkgo.By("Delete the pod mounted to the NFS volume -- expect failure")
413413
err := framework.DeletePodWithWait(f, c, pod)
414-
gomega.Expect(err).To(gomega.HaveOccurred())
414+
framework.ExpectError(err)
415415
// pod object is now stale, but is intentionally not nil
416416

417417
ginkgo.By("Check if pod's host has been cleaned up -- expect not")

0 commit comments

Comments
 (0)