mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-08 00:01:40 +00:00
test: fix ginkgolinter issues
All of these issues were reported by https://github.com/nunnatsa/ginkgolinter. Fixing these issues is useful (several expressions get simpler, using framework.ExpectNoError is better because it has additional support for failures) and a necessary step for enabling that linter in our golangci-lint invocation.
This commit is contained in:
@@ -134,7 +134,7 @@ var _ = SIGDescribe("Kubelet", func() {
|
||||
*/
|
||||
framework.ConformanceIt("should be possible to delete [NodeConformance]", func(ctx context.Context) {
|
||||
err := podClient.Delete(ctx, podName, metav1.DeleteOptions{})
|
||||
gomega.Expect(err).To(gomega.BeNil(), fmt.Sprintf("Error deleting Pod %v", err))
|
||||
framework.ExpectNoError(err, "deleting Pod")
|
||||
})
|
||||
})
|
||||
ginkgo.Context("when scheduling an agnhost Pod with hostAliases", func() {
|
||||
|
||||
Reference in New Issue
Block a user