Avoid field confusion be naming fields in packer/build_test.go

This commit is contained in:
Adrien Delorme 2020-01-16 16:24:33 +01:00
parent 2d1a67c6cb
commit c905418d4e
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ func testBuild() *CoreBuild {
"foo": {&MockHook{}}, "foo": {&MockHook{}},
}, },
Provisioners: []CoreBuildProvisioner{ Provisioners: []CoreBuildProvisioner{
{"mock-provisioner", &MockProvisioner{}, []interface{}{42}}, {
PType: "mock-provisioner",
Provisioner: &MockProvisioner{},
config: []interface{}{42}},
}, },
PostProcessors: [][]CoreBuildPostProcessor{ PostProcessors: [][]CoreBuildPostProcessor{
{ {