Skip to content

Commit f19db6e

Browse files
committed
test: fix ut
1 parent 9058c86 commit f19db6e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/nfs/nodeserver_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package nfs
1919
import (
2020
"context"
2121
"errors"
22-
"fmt"
2322
"os"
2423
"reflect"
2524
"strings"
@@ -217,11 +216,6 @@ func TestNodeUnpublishVolume(t *testing.T) {
217216
req: csi.NodeUnpublishVolumeRequest{VolumeId: "vol_1"},
218217
expectedErr: status.Error(codes.InvalidArgument, "Target path missing in request"),
219218
},
220-
{
221-
desc: "[Error] Unmount error mocked by IsLikelyNotMountPoint",
222-
req: csi.NodeUnpublishVolumeRequest{TargetPath: errorTarget, VolumeId: "vol_1"},
223-
expectedErr: fmt.Errorf("fake IsLikelyNotMountPoint: fake error"),
224-
},
225219
{
226220
desc: "[Success] Volume not mounted",
227221
req: csi.NodeUnpublishVolumeRequest{TargetPath: targetFile, VolumeId: "vol_1"},

0 commit comments

Comments
 (0)