From d266b79a39930a271681ee994309ed2ef931437d Mon Sep 17 00:00:00 2001 From: AllenZMC Date: Wed, 14 Aug 2019 20:53:24 +0800 Subject: [PATCH 1/2] fix some typos in testing.go --- pkg/controller/volume/persistentvolume/testing/testing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { From cdcf1c0ea2dffb99999c9b61ce08321d96f2b4d4 Mon Sep 17 00:00:00 2001 From: czm Date: Thu, 15 Aug 2019 11:34:46 +0800 Subject: [PATCH 2/2] fix some typos in recycle_test.go --- pkg/controller/volume/persistentvolume/recycle_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") }), }, {