@@ -304,23 +304,6 @@ func TestNodePublishVolume(t *testing.T) {
304304 WindowsError : status .Errorf (codes .Internal , "Could not mount target %#v: mkdir %s: The system cannot find the path specified." , smbFile , smbFile ),
305305 },
306306 },
307- {
308- desc : "[Error] Volume operation in progress" ,
309- setup : func (d * Driver ) {
310- d .volumeLocks .TryAcquire ("vol_1" )
311- },
312- req : csi.NodePublishVolumeRequest {VolumeCapability : & csi.VolumeCapability {AccessMode : & volumeCap },
313- VolumeId : "vol_1" ,
314- TargetPath : targetTest ,
315- StagingTargetPath : sourceTest ,
316- Readonly : true },
317- expectedErr : testutil.TestError {
318- DefaultError : status .Error (codes .Aborted , fmt .Sprintf (volumeOperationAlreadyExistsFmt , "vol_1" )),
319- },
320- cleanup : func (d * Driver ) {
321- d .volumeLocks .Release ("vol_1" )
322- },
323- },
324307 {
325308 desc : "[Error] Mount error mocked by Mount" ,
326309 req : csi.NodePublishVolumeRequest {VolumeCapability : & csi.VolumeCapability {AccessMode : & volumeCap },
@@ -422,19 +405,6 @@ func TestNodeUnpublishVolume(t *testing.T) {
422405 DefaultError : status .Error (codes .InvalidArgument , "Target path missing in request" ),
423406 },
424407 },
425- {
426- desc : "[Error] Volume operation in progress" ,
427- setup : func (d * Driver ) {
428- d .volumeLocks .TryAcquire ("vol_1" )
429- },
430- req : csi.NodeUnpublishVolumeRequest {TargetPath : targetFile , VolumeId : "vol_1" },
431- expectedErr : testutil.TestError {
432- DefaultError : status .Error (codes .Aborted , fmt .Sprintf (volumeOperationAlreadyExistsFmt , "vol_1" )),
433- },
434- cleanup : func (d * Driver ) {
435- d .volumeLocks .Release ("vol_1" )
436- },
437- },
438408 {
439409 desc : "[Error] Unmount error mocked by IsLikelyNotMountPoint" ,
440410 req : csi.NodeUnpublishVolumeRequest {TargetPath : errorTarget , VolumeId : "vol_1" },
0 commit comments