Commit 75053b2d authored by NickrenREN's avatar NickrenREN

Modify fatal messages

parent b4c71b1f
...@@ -201,7 +201,7 @@ func Test_AddPodToVolume_Positive_ExistingVolumeNewNode(t *testing.T) { ...@@ -201,7 +201,7 @@ func Test_AddPodToVolume_Positive_ExistingVolumeNewNode(t *testing.T) {
mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{}) mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{})
if err != nil { if err != nil {
t.Fatalf("NewUnmounter failed. Expected: <no error> Actual: <%v>", err) t.Fatalf("NewMounter failed. Expected: <no error> Actual: <%v>", err)
} }
// Act // Act
...@@ -260,7 +260,7 @@ func Test_AddPodToVolume_Positive_ExistingVolumeExistingNode(t *testing.T) { ...@@ -260,7 +260,7 @@ func Test_AddPodToVolume_Positive_ExistingVolumeExistingNode(t *testing.T) {
mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{}) mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{})
if err != nil { if err != nil {
t.Fatalf("NewUnmounter failed. Expected: <no error> Actual: <%v>", err) t.Fatalf("NewMounter failed. Expected: <no error> Actual: <%v>", err)
} }
err = asw.AddPodToVolume( err = asw.AddPodToVolume(
...@@ -325,7 +325,7 @@ func Test_AddPodToVolume_Negative_VolumeDoesntExist(t *testing.T) { ...@@ -325,7 +325,7 @@ func Test_AddPodToVolume_Negative_VolumeDoesntExist(t *testing.T) {
mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{}) mounter, err := plugin.NewMounter(volumeSpec, pod, volume.VolumeOptions{})
if err != nil { if err != nil {
t.Fatalf("NewUnmounter failed. Expected: <no error> Actual: <%v>", err) t.Fatalf("NewMounter failed. Expected: <no error> Actual: <%v>", err)
} }
// Act // Act
......
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