Fix errors in cephfs_test.go

This commit is contained in:
houjun 2017-10-12 14:55:08 +08:00
parent 4ff6ef4a37
commit 80c3d2df14

View File

@ -85,9 +85,8 @@ func TestPlugin(t *testing.T) {
t.Errorf("Got a nil Mounter")
}
volpath := path.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~cephfs/vol1")
path := mounter.GetPath()
if path != volpath {
t.Errorf("Got unexpected path: %s", path)
if volumePath != volpath {
t.Errorf("Got unexpected path: %s", volumePath)
}
if err := mounter.SetUp(nil); err != nil {
t.Errorf("Expected success, got: %v", err)