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") t.Errorf("Got a nil Mounter")
} }
volpath := path.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~cephfs/vol1") volpath := path.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~cephfs/vol1")
path := mounter.GetPath() if volumePath != volpath {
if path != volpath { t.Errorf("Got unexpected path: %s", volumePath)
t.Errorf("Got unexpected path: %s", path)
} }
if err := mounter.SetUp(nil); err != nil { if err := mounter.SetUp(nil); err != nil {
t.Errorf("Expected success, got: %v", err) t.Errorf("Expected success, got: %v", err)