From d86bf8a0b8546dae8705c33cbc0c4df43608e0d8 Mon Sep 17 00:00:00 2001 From: FengyunPan Date: Sat, 13 May 2017 15:19:34 +0800 Subject: [PATCH] Fix reconciler test of attaching volume The Attach() of FakeVolume should return device path --- pkg/volume/testing/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/testing/testing.go b/pkg/volume/testing/testing.go index 9c859c13383..8eccc091bf4 100644 --- a/pkg/volume/testing/testing.go +++ b/pkg/volume/testing/testing.go @@ -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 {