Merge pull request #81444 from AllenZMC/patch-3

fix some typos in testing.go and recycle_test.go
This commit is contained in:
Kubernetes Prow Robot 2019-08-15 23:08:59 -07:00 committed by GitHub
commit 22dc60e1a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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")
}),
},
{

View File

@ -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 {