@@ -33,7 +33,7 @@ func TestDelete(t *testing.T) {
33
33
Get (gomock .Any (), "my-storage-box" ).
34
34
Return (sb , nil , nil )
35
35
fx .Client .StorageBoxClient .EXPECT ().
36
- GetSubaccountByID (gomock .Any (), sb , int64 ( 456 ) ).
36
+ GetSubaccount (gomock .Any (), sb , " 456" ).
37
37
Return (sbs , nil , nil )
38
38
fx .Client .StorageBoxClient .EXPECT ().
39
39
DeleteSubaccount (gomock .Any (), sbs ).
@@ -63,7 +63,7 @@ func TestDeleteMultiple(t *testing.T) {
63
63
Name : "my-storage-box" ,
64
64
}
65
65
66
- snapshots := []* hcloud.StorageBoxSubaccount {
66
+ subaccounts := []* hcloud.StorageBoxSubaccount {
67
67
{
68
68
ID : 123 ,
69
69
StorageBox : sb ,
@@ -83,10 +83,11 @@ func TestDeleteMultiple(t *testing.T) {
83
83
Return (sb , nil , nil )
84
84
85
85
var ids []string
86
- for _ , sbs := range snapshots {
87
- ids = append (ids , strconv .FormatInt (sbs .ID , 10 ))
86
+ for _ , sbs := range subaccounts {
87
+ idStr := strconv .FormatInt (sbs .ID , 10 )
88
+ ids = append (ids , idStr )
88
89
fx .Client .StorageBoxClient .EXPECT ().
89
- GetSubaccountByID (gomock .Any (), sb , sbs . ID ).
90
+ GetSubaccount (gomock .Any (), sb , idStr ).
90
91
Return (sbs , nil , nil )
91
92
fx .Client .StorageBoxClient .EXPECT ().
92
93
DeleteSubaccount (gomock .Any (), sbs ).
0 commit comments