@@ -124,12 +124,12 @@ var _ = Describe("CSI sanity test", Ordered, func() {
124124
125125 iaasClient .EXPECT ().ListVolumes (
126126 gomock .Any (), gomock .Any (), gomock .Eq ("" ),
127- ).DoAndReturn (func (_ context.Context , _ int , _ string ) ([]iaas.Volume , string , error ) {
127+ ).DoAndReturn (func (_ context.Context , _ int , _ string ) ([]iaas.Volume , error ) {
128128 var volList []iaas.Volume
129129 for _ , vol := range createdVolumes {
130130 volList = append (volList , * vol ) // Append the value
131131 }
132- return volList , "" , nil
132+ return volList , nil
133133 }).AnyTimes ()
134134
135135 iaasClient .EXPECT ().DeleteVolume (
@@ -162,7 +162,7 @@ var _ = Describe("CSI sanity test", Ordered, func() {
162162 iaasClient .EXPECT ().CreateSnapshot (
163163 gomock .Any (), // context
164164 gomock .Any (), // payload
165- ).DoAndReturn (func (_ context.Context , name string , volID string , _ map [ string ] string ) (* iaas.Snapshot , error ) {
165+ ).DoAndReturn (func (_ context.Context , payload * iaas. CreateSnapshotPayload ) (* iaas.Snapshot , error ) {
166166 newSnap := & iaas.Snapshot {
167167 Id : new (uuid.New ().String ()),
168168 Name : new (name ),
0 commit comments