Skip to content

Commit ed9ebec

Browse files
authored
Followup (#7)
* Changes remove the API version concept from GetDisk and InsertDisk, now just defaults to using the Beta API. * Cleaning up un-used variables. * pkg/gce-cloud-provider/compute/fake-gce.go
1 parent a64c11f commit ed9ebec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/common/utils_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ func TestIsUserMultiAttachError(t *testing.T) {
14091409
},
14101410
}
14111411
for _, test := range cases {
1412-
code, err := isUserMultiAttachError(fmt.Errorf(test.errorString))
1412+
code, err := isUserMultiAttachError(fmt.Errorf("%s", test.errorString))
14131413
if test.expectCode {
14141414
if err != nil || code != test.expectedCode {
14151415
t.Errorf("Failed with non-nil error %v or bad code %v: %s", err, code, test.errorString)

pkg/gce-pd-csi-driver/controller_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ func TestMultiZoneVolumeCreationErrHandling(t *testing.T) {
17411741
}
17421742

17431743
for _, volKey := range tc.wantDisks {
1744-
disk, err := fcp.GetDisk(context.Background(), project, volKey, gce.GCEAPIVersionV1)
1744+
disk, err := fcp.GetDisk(context.Background(), project, volKey)
17451745
if err != nil {
17461746
t.Errorf("Unexpected err fetching disk %v: %v", volKey, err)
17471747
}

0 commit comments

Comments
 (0)