Skip to content

Commit e34aae8

Browse files
committed
sanity: capture newly created volume IDs
In one of ListVolumes tests, newly created volume ids were not captured. Though the test has needed cleaning up code, it was affected because of the empty newVolIDs array. This leads to leaking of volumes. Signed-off-by: Amarnath Valluri <[email protected]>
1 parent e1f2421 commit e34aae8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/sanity/controller.go

+1
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
319319
vol, err := c.CreateVolume(context.Background(), req)
320320
Expect(err).NotTo(HaveOccurred())
321321
Expect(vol).NotTo(BeNil())
322+
newVolIDs = append(newVolIDs, vol.Volume.VolumeId)
322323
}
323324

324325
// Update the current total vols count.

0 commit comments

Comments
 (0)