diff --git a/common/step_download_test.go b/common/step_download_test.go index fa0e690d9..26cd026e9 100644 --- a/common/step_download_test.go +++ b/common/step_download_test.go @@ -245,6 +245,7 @@ func TestStepDownload_download(t *testing.T) { ui := &packer.BasicUi{ Reader: new(bytes.Buffer), Writer: new(bytes.Buffer), + PB: &packer.NoopProgressTracker{}, } dir := createTempDir(t) diff --git a/common/step_output_dir_test.go b/common/step_output_dir_test.go index 197977151..7a5f58d95 100644 --- a/common/step_output_dir_test.go +++ b/common/step_output_dir_test.go @@ -16,6 +16,7 @@ func testState(t *testing.T) multistep.StateBag { state.Put("ui", &packer.BasicUi{ Reader: new(bytes.Buffer), Writer: new(bytes.Buffer), + PB: &packer.NoopProgressTracker{}, }) return state } diff --git a/provisioner/file/provisioner_test.go b/provisioner/file/provisioner_test.go index 0986e1e05..dd1d0325c 100644 --- a/provisioner/file/provisioner_test.go +++ b/provisioner/file/provisioner_test.go @@ -126,6 +126,7 @@ func TestProvisionerProvision_SendsFile(t *testing.T) { b := bytes.NewBuffer(nil) ui := &packer.BasicUi{ Writer: b, + PB: &packer.NoopProgressTracker{}, } comm := &packer.MockCommunicator{} err = p.Provision(context.Background(), ui, comm, make(map[string]interface{})) @@ -184,6 +185,7 @@ func TestProvisionerProvision_SendsFileMultipleFiles(t *testing.T) { b := bytes.NewBuffer(nil) ui := &packer.BasicUi{ Writer: b, + PB: &packer.NoopProgressTracker{}, } comm := &packer.MockCommunicator{} err = p.Provision(context.Background(), ui, comm, make(map[string]interface{})) @@ -253,6 +255,7 @@ func TestProvisionerProvision_SendsFileMultipleDirs(t *testing.T) { b := bytes.NewBuffer(nil) ui := &packer.BasicUi{ Writer: b, + PB: &packer.NoopProgressTracker{}, } comm := &packer.MockCommunicator{} err = p.Provision(context.Background(), ui, comm, make(map[string]interface{})) @@ -304,6 +307,7 @@ func TestProvisionerProvision_SendsFileMultipleFilesToFolder(t *testing.T) { b := bytes.NewBuffer(nil) ui := &packer.BasicUi{ Writer: b, + PB: &packer.NoopProgressTracker{}, } comm := &packer.MockCommunicator{} err = p.Provision(context.Background(), ui, comm, make(map[string]interface{})) @@ -361,6 +365,7 @@ func TestProvisionDownloadMkdirAll(t *testing.T) { b := bytes.NewBuffer(nil) ui := &packer.BasicUi{ Writer: b, + PB: &packer.NoopProgressTracker{}, } comm := &packer.MockCommunicator{} err = p.ProvisionDownload(ui, comm)