From f482646372b5406c270048e937b961186d1dcf1a Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 25 Aug 2017 21:06:34 -0700 Subject: [PATCH] Fix swallowed error in tests of host_path package --- pkg/volume/host_path/host_path_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/volume/host_path/host_path_test.go b/pkg/volume/host_path/host_path_test.go index 8d78b99d0fb..c6124ae2545 100644 --- a/pkg/volume/host_path/host_path_test.go +++ b/pkg/volume/host_path/host_path_test.go @@ -158,7 +158,9 @@ func TestProvisioner(t *testing.T) { tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID()) defer os.RemoveAll(tempPath) err := os.MkdirAll(tempPath, 0750) - + if err != nil { + t.Errorf("Failed to create tempPath %s error:%v", tempPath, err) + } plugMgr := volume.VolumePluginMgr{} plugMgr.InitPlugins(ProbeVolumePlugins(volume.VolumeConfig{ProvisioningEnabled: true}), volumetest.NewFakeVolumeHost("/tmp/fake", nil, nil))