Fix swallowed error in tests of host_path package

This commit is contained in:
Lars Lehtonen 2017-08-25 21:06:34 -07:00
parent 85f963310e
commit f482646372
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -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))