Skip to content

Commit

Permalink
add cleanup for cloned snapshot in test (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
AKhoria committed Oct 27, 2022
1 parent 9048b7c commit 7139cc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kube/snapshot/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ func (s *SnapshotTestSuite) testVolumeSnapshot(c *C, snapshotter snapshot.Snapsh

_, err = snapshotter.Delete(ctx, snap.Name, snap.Namespace)
c.Assert(err, IsNil)

_, err = snapshotter.Delete(ctx, snapshotCloneName, s.targetNamespace)
c.Assert(err, IsNil)
}

func (s *SnapshotTestSuite) cleanupNamespace(c *C, ns string) {
Expand Down

0 comments on commit 7139cc9

Please sign in to comment.