Skip to content

Commit

Permalink
fix UT for snapshotlist test (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
bathina2 committed Mar 12, 2021
1 parent 3ab1b71 commit b265bdc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/blockstorage/blockstorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ func (s *BlockStorageProviderSuite) testVolumesList(c *C) {
func (s *BlockStorageProviderSuite) TestSnapshotsList(c *C) {
var tags map[string]string
testSnaphot := s.createSnapshot(c)
if s.provider.Type() != blockstorage.TypeEBS {
tags = map[string]string{ktags.SanitizeValueForGCP(testTagKey): testTagValue}
} else {
tags = map[string]string{"tag-key": testTagKey, "tag-value": testTagValue}
}
tags = map[string]string{testTagKey: testTagValue}
snaps, err := s.provider.SnapshotsList(context.Background(), tags)
c.Assert(err, IsNil)
c.Assert(snaps, NotNil)
Expand Down

0 comments on commit b265bdc

Please sign in to comment.