Commit d86bf8a0 authored by FengyunPan's avatar FengyunPan

Fix reconciler test of attaching volume

The Attach() of FakeVolume should return device path
parent 4a6e1f2a
...@@ -387,7 +387,7 @@ func (fv *FakeVolume) Attach(spec *Spec, nodeName types.NodeName) (string, error ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment