Fix reconciler test of attaching volume

The Attach() of FakeVolume should return device path
This commit is contained in:
FengyunPan 2017-05-13 15:19:34 +08:00
parent 4a6e1f2a1d
commit d86bf8a0b8

View File

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