mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fix reconciler test of attaching volume
The Attach() of FakeVolume should return device path
This commit is contained in:
parent
4a6e1f2a1d
commit
d86bf8a0b8
@ -387,7 +387,7 @@ func (fv *FakeVolume) Attach(spec *Spec, nodeName types.NodeName) (string, error
|
|||||||
fv.Lock()
|
fv.Lock()
|
||||||
defer fv.Unlock()
|
defer fv.Unlock()
|
||||||
fv.AttachCallCount++
|
fv.AttachCallCount++
|
||||||
return "", nil
|
return "/dev/vdb-test", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fv *FakeVolume) GetAttachCallCount() int {
|
func (fv *FakeVolume) GetAttachCallCount() int {
|
||||||
|
Loading…
Reference in New Issue
Block a user