FIX the os.Stat() func in volume file/kind bug

This commit is contained in:
jianglingxia
2018-02-24 19:31:21 +08:00
parent af58729c86
commit d759c601b6
3 changed files with 0 additions and 21 deletions

View File

@@ -188,13 +188,6 @@ func doTestPlugin(t *testing.T, spec *volume.Spec) {
t.Errorf("SetUp() failed: %v", err)
}
}
if _, err := os.Stat(path); err != nil {
if os.IsNotExist(err) {
t.Errorf("SetUp() failed, volume path not created: %s", path)
} else {
t.Errorf("SetUp() failed: %v", err)
}
}
fakeManager2 := NewFakeDiskManager()
defer fakeManager2.Cleanup()