From dd79d1fc042705e7c30b28eb37de2bee66a610ae Mon Sep 17 00:00:00 2001 From: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:24:58 -0700 Subject: [PATCH] Another nil check fix in BlockStorageProviderSuite --- pkg/blockstorage/blockstorage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/blockstorage/blockstorage_test.go b/pkg/blockstorage/blockstorage_test.go index 8dc5c09931..10bd57e1cf 100644 --- a/pkg/blockstorage/blockstorage_test.go +++ b/pkg/blockstorage/blockstorage_test.go @@ -142,7 +142,7 @@ func (s *BlockStorageProviderSuite) TestCreateSnapshot(c *check.C) { c.Assert(err, check.IsNil) s.snapshots = nil _, err = s.provider.SnapshotGet(context.Background(), snapshot.ID) - c.Assert(err, check.IsNil) + c.Assert(err, check.NotNil) c.Assert(strings.Contains(err.Error(), blockstorage.SnapshotDoesNotExistError), check.Equals, true) } }