Use ExpectNoError(err)
We missed another pattern to check error doesn't happen on e2e tests. This covers the pattern for consistent test implementation.
This commit is contained in:
@@ -327,7 +327,7 @@ var _ = SIGDescribe("HugePages [Serial] [Feature:HugePages][NodeSpecialFeature:H
|
||||
ginkgo.By("checking if the expected hugetlb settings were applied")
|
||||
f.PodClient().Create(verifyPod)
|
||||
err := e2epod.WaitForPodSuccessInNamespace(f.ClientSet, verifyPod.Name, f.Namespace.Name)
|
||||
gomega.Expect(err).To(gomega.BeNil())
|
||||
framework.ExpectNoError(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user