From 693672e64661ab8f198db30a872dae20bbc3df94 Mon Sep 17 00:00:00 2001 From: Michelle Au Date: Mon, 9 Jul 2018 14:36:10 -0700 Subject: [PATCH] Remove requirement for non-nil node capabilities --- pkg/sanity/node.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/sanity/node.go b/pkg/sanity/node.go index 5085bc50..036d9df7 100644 --- a/pkg/sanity/node.go +++ b/pkg/sanity/node.go @@ -38,7 +38,6 @@ func isNodeCapabilitySupported(c csi.NodeClient, &csi.NodeGetCapabilitiesRequest{}) Expect(err).NotTo(HaveOccurred()) Expect(caps).NotTo(BeNil()) - Expect(caps.GetCapabilities()).NotTo(BeNil()) for _, cap := range caps.GetCapabilities() { Expect(cap.GetRpc()).NotTo(BeNil()) @@ -86,7 +85,6 @@ var _ = Describe("NodeGetCapabilities [Node Server]", func() { By("checking successful response") Expect(err).NotTo(HaveOccurred()) Expect(caps).NotTo(BeNil()) - Expect(caps.GetCapabilities()).NotTo(BeNil()) for _, cap := range caps.GetCapabilities() { Expect(cap.GetRpc()).NotTo(BeNil())