Fix tests for vmware/common

This commit is contained in:
DanHam 2018-04-24 16:38:37 +01:00
parent a729ecda87
commit 10d93dffa4
No known key found for this signature in database
GPG Key ID: 58E79AEDD6AA987E
1 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,8 @@ func TestStepCompactDisk(t *testing.T) {
state := testState(t) state := testState(t)
step := new(StepCompactDisk) step := new(StepCompactDisk)
state.Put("full_disk_path", "foo") diskPaths := []string{"foo"}
state.Put("disk_full_paths", diskPaths)
driver := state.Get("driver").(*DriverMock) driver := state.Get("driver").(*DriverMock)
@ -41,7 +42,8 @@ func TestStepCompactDisk_skip(t *testing.T) {
step := new(StepCompactDisk) step := new(StepCompactDisk)
step.Skip = true step.Skip = true
state.Put("full_disk_path", "foo") diskPaths := []string{"foo"}
state.Put("disk_full_paths", diskPaths)
driver := state.Get("driver").(*DriverMock) driver := state.Get("driver").(*DriverMock)