diff --git a/pkg/sanity/controller.go b/pkg/sanity/controller.go index cf23d903..d56f465d 100644 --- a/pkg/sanity/controller.go +++ b/pkg/sanity/controller.go @@ -581,8 +581,9 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *TestCo }, } vol, err := r.CreateVolume(context.Background(), vol2Req) - Expect(vol.GetVolume().ContentSource).NotTo(BeNil()) Expect(err).NotTo(HaveOccurred()) + Expect(vol).NotTo(BeNil()) + Expect(vol.GetVolume().ContentSource).NotTo(BeNil()) }) It("should fail when the volume source snapshot is not found", func() {