mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00:00
Fix swallowed error in tests of host_path package
This commit is contained in:
parent
85f963310e
commit
f482646372
@ -158,7 +158,9 @@ func TestProvisioner(t *testing.T) {
|
|||||||
tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID())
|
tempPath := fmt.Sprintf("/tmp/hostpath/%s", uuid.NewUUID())
|
||||||
defer os.RemoveAll(tempPath)
|
defer os.RemoveAll(tempPath)
|
||||||
err := os.MkdirAll(tempPath, 0750)
|
err := os.MkdirAll(tempPath, 0750)
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("Failed to create tempPath %s error:%v", tempPath, err)
|
||||||
|
}
|
||||||
plugMgr := volume.VolumePluginMgr{}
|
plugMgr := volume.VolumePluginMgr{}
|
||||||
plugMgr.InitPlugins(ProbeVolumePlugins(volume.VolumeConfig{ProvisioningEnabled: true}),
|
plugMgr.InitPlugins(ProbeVolumePlugins(volume.VolumeConfig{ProvisioningEnabled: true}),
|
||||||
volumetest.NewFakeVolumeHost("/tmp/fake", nil, nil))
|
volumetest.NewFakeVolumeHost("/tmp/fake", nil, nil))
|
||||||
|
Loading…
Reference in New Issue
Block a user