Skip to content

Commit

Permalink
Fix TestPlugin func has two same if code/kind bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jianglingxia committed Feb 6, 2018
1 parent 4e2c3f0 commit a5865dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/volume/cinder/cinder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,6 @@ func TestPlugin(t *testing.T) {
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)
}
}

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

0 comments on commit a5865dd

Please sign in to comment.