mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 21:21:14 +00:00
Merge pull request #81444 from AllenZMC/patch-3
fix some typos in testing.go and recycle_test.go
This commit is contained in:
@@ -149,7 +149,7 @@ func TestRecycleSync(t *testing.T) {
|
|||||||
noevents, noerrors,
|
noevents, noerrors,
|
||||||
wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) {
|
wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) {
|
||||||
// Mark the volume as Available before the recycler starts
|
// 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,
|
noevents, noerrors,
|
||||||
wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) {
|
wrapTestWithInjectedOperation(wrapTestWithReclaimCalls(operationRecycle, []error{}, testSyncVolume), func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor) {
|
||||||
// Mark the volume as Available before the recycler starts
|
// Mark the volume as Available before the recycler starts
|
||||||
reactor.MarkVolumeAvaiable("volume6-8")
|
reactor.MarkVolumeAvailable("volume6-8")
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@@ -557,8 +557,8 @@ func (r *VolumeReactor) AddClaimBoundToVolume(claim *v1.PersistentVolumeClaim) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarkVolumeAvaiable marks a PV available by name.
|
// MarkVolumeAvailable marks a PV available by name.
|
||||||
func (r *VolumeReactor) MarkVolumeAvaiable(name string) {
|
func (r *VolumeReactor) MarkVolumeAvailable(name string) {
|
||||||
r.lock.Lock()
|
r.lock.Lock()
|
||||||
defer r.lock.Unlock()
|
defer r.lock.Unlock()
|
||||||
if volume, ok := r.volumes[name]; ok {
|
if volume, ok := r.volumes[name]; ok {
|
||||||
|
Reference in New Issue
Block a user