Commit 123ba1b4 authored by mlmhl's avatar mlmhl

fix some bugs inside csi unit test TestAttacherMountDevice

parent ee4d90aa
...@@ -474,7 +474,7 @@ func TestAttacherMountDevice(t *testing.T) { ...@@ -474,7 +474,7 @@ func TestAttacherMountDevice(t *testing.T) {
devicePath: "", devicePath: "",
deviceMountPath: "path2", deviceMountPath: "path2",
stageUnstageSet: true, stageUnstageSet: true,
shouldFail: true, shouldFail: false,
}, },
{ {
testName: "no device mount path", testName: "no device mount path",
...@@ -539,7 +539,7 @@ func TestAttacherMountDevice(t *testing.T) { ...@@ -539,7 +539,7 @@ func TestAttacherMountDevice(t *testing.T) {
if !tc.shouldFail { if !tc.shouldFail {
t.Errorf("test should not fail, but error occurred: %v", err) t.Errorf("test should not fail, but error occurred: %v", err)
} }
return continue
} }
if err == nil && tc.shouldFail { if err == nil && tc.shouldFail {
t.Errorf("test should fail, but no error occurred") t.Errorf("test should fail, but no error occurred")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment