diff --git a/pkg/volume/csi/csi_attacher_test.go b/pkg/volume/csi/csi_attacher_test.go index 9266acbb145..159d5161bfa 100644 --- a/pkg/volume/csi/csi_attacher_test.go +++ b/pkg/volume/csi/csi_attacher_test.go @@ -582,6 +582,13 @@ func TestAttacherUnmountDevice(t *testing.T) { deviceMountPath: "/tmp/csi-test049507108/plugins/csi/pv/test-pv-name/globalmount", stageUnstageSet: true, }, + { + testName: "no volID", + volID: "", + deviceMountPath: "/tmp/csi-test049507108/plugins/csi/pv/test-pv-name/globalmount", + stageUnstageSet: true, + shouldFail: true, + }, { testName: "no device mount path", volID: "project/zone/test-vol1",