mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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()
|
||||
defer fv.Unlock()
|
||||
fv.AttachCallCount++
|
||||
return "", nil
|
||||
return "/dev/vdb-test", nil
|
||||
}
|
||||
|
||||
func (fv *FakeVolume) GetAttachCallCount() int {
|
||||
|
Loading…
Reference in New Issue
Block a user