Skip to content

Commit

Permalink
Another nil check fix in BlockStorageProviderSuite (#3160)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 authored Sep 25, 2024
1 parent 5a837b4 commit 701f6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blockstorage/blockstorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 701f6d0

Please sign in to comment.