From 10d93dffa4e104d9945d0bad6cf7e2314c021a23 Mon Sep 17 00:00:00 2001 From: DanHam Date: Tue, 24 Apr 2018 16:38:37 +0100 Subject: [PATCH] Fix tests for vmware/common --- builder/vmware/common/step_compact_disk_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/builder/vmware/common/step_compact_disk_test.go b/builder/vmware/common/step_compact_disk_test.go index 365e9ccb2..d3884f8d5 100644 --- a/builder/vmware/common/step_compact_disk_test.go +++ b/builder/vmware/common/step_compact_disk_test.go @@ -15,7 +15,8 @@ func TestStepCompactDisk(t *testing.T) { state := testState(t) step := new(StepCompactDisk) - state.Put("full_disk_path", "foo") + diskPaths := []string{"foo"} + state.Put("disk_full_paths", diskPaths) driver := state.Get("driver").(*DriverMock) @@ -41,7 +42,8 @@ func TestStepCompactDisk_skip(t *testing.T) { step := new(StepCompactDisk) step.Skip = true - state.Put("full_disk_path", "foo") + diskPaths := []string{"foo"} + state.Put("disk_full_paths", diskPaths) driver := state.Get("driver").(*DriverMock)