From c905418d4e56928ee1fc1fb5c75b315f02731889 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Thu, 16 Jan 2020 16:24:33 +0100 Subject: [PATCH] Avoid field confusion be naming fields in packer/build_test.go --- packer/build_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packer/build_test.go b/packer/build_test.go index c6b51c9b6..3249bc6d0 100644 --- a/packer/build_test.go +++ b/packer/build_test.go @@ -22,7 +22,10 @@ func testBuild() *CoreBuild { "foo": {&MockHook{}}, }, Provisioners: []CoreBuildProvisioner{ - {"mock-provisioner", &MockProvisioner{}, []interface{}{42}}, + { + PType: "mock-provisioner", + Provisioner: &MockProvisioner{}, + config: []interface{}{42}}, }, PostProcessors: [][]CoreBuildPostProcessor{ {