Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 71c3c70

Browse files
committed
Fix TestPlugin func has two same if code/kind bug
1 parent d219c48 commit 71c3c70

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

pkg/volume/cinder/cinder_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,6 @@ func TestPlugin(t *testing.T) {
172172
t.Errorf("SetUp() failed: %v", err)
173173
}
174174
}
175-
if _, err := os.Stat(path); err != nil {
176-
if os.IsNotExist(err) {
177-
t.Errorf("SetUp() failed, volume path not created: %s", path)
178-
} else {
179-
t.Errorf("SetUp() failed: %v", err)
180-
}
181-
}
182175

183176
unmounter, err := plug.(*cinderPlugin).newUnmounterInternal("vol1", types.UID("poduid"), &fakePDManager{0}, &mount.FakeMounter{})
184177
if err != nil {

0 commit comments

Comments
 (0)