From a9525c8c0ab3c5bb40d6211671505cb4b9d0b91a Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Fri, 29 Jun 2018 10:20:45 +0800 Subject: [PATCH] fix unit test TestAttacherUnmountDevice Before this test such command fails: ``` make test WHAT=k8s.io/kubernetes/pkg/volume/csi KUBE_TEST_ARGS='-run ^TestAttacherUnmountDevice$' ``` --- pkg/volume/csi/csi_attacher_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/volume/csi/csi_attacher_test.go b/pkg/volume/csi/csi_attacher_test.go index cfa9aa2b8b3..f0525db6b71 100644 --- a/pkg/volume/csi/csi_attacher_test.go +++ b/pkg/volume/csi/csi_attacher_test.go @@ -653,6 +653,8 @@ func TestAttacherUnmountDevice(t *testing.T) { }, { testName: "stage_unstage not set no vars should not fail", + deviceMountPath: "plugins/csi/pv/test-pv-name/globalmount", + jsonFile: `{"driverName":"test-driver","volumeHandle":"test-vol1"}`, stageUnstageSet: false, }, }