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:
Kenichi Omichi
2020-09-03 18:37:01 +00:00
parent 6ee74bf600
commit 12c0eaef25
8 changed files with 25 additions and 22 deletions

View File

@@ -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)
}
})
}