diff --git a/pkg/controller/volume/persistentvolume/recycle_test.go b/pkg/controller/volume/persistentvolume/recycle_test.go index 11dd10bd838..f788a9bb9bd 100644 --- a/pkg/controller/volume/persistentvolume/recycle_test.go +++ b/pkg/controller/volume/persistentvolume/recycle_test.go @@ -149,7 +149,7 @@ func TestRecycleSync(t *testing.T) { noevents, noerrors, wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) { // Mark the volume as Available before the recycler starts - reactor.MarkVolumeAvaiable("volume6-7") + reactor.MarkVolumeAvailable("volume6-7") }), }, { @@ -165,7 +165,7 @@ func TestRecycleSync(t *testing.T) { noevents, noerrors, wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) { // Mark the volume as Available before the recycler starts - reactor.MarkVolumeAvaiable("volume6-8") + reactor.MarkVolumeAvailable("volume6-8") }), }, { diff --git a/pkg/controller/volume/persistentvolume/testing/testing.go b/pkg/controller/volume/persistentvolume/testing/testing.go index de83897057e..809a04f45ac 100644 --- a/pkg/controller/volume/persistentvolume/testing/testing.go +++ b/pkg/controller/volume/persistentvolume/testing/testing.go @@ -557,8 +557,8 @@ func (r *VolumeReactor) AddClaimBoundToVolume(claim *v1.PersistentVolumeClaim) { } } -// MarkVolumeAvaiable marks a PV available by name. -func (r *VolumeReactor) MarkVolumeAvaiable(name string) { +// MarkVolumeAvailable marks a PV available by name. +func (r *VolumeReactor) MarkVolumeAvailable(name string) { r.lock.Lock() defer r.lock.Unlock() if volume, ok := r.volumes[name]; ok {