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

Commit aba5950

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request #59388 from jianglingxia/jlx-020610
Automatic merge from submit-queue (batch tested with PRs 54680, 59388, 57455). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix TestPlugin func has two same if code/kind bug **What this PR does / why we need it**: Fix TestPlugin func has two same if code **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
2 parents d219c48 + 71c3c70 commit aba5950

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)