Skip to content

Commit

Permalink
Update Acceptance Test to include BuilderSet
Browse files Browse the repository at this point in the history
This change initializes a MapOfBuilders with the test builder to fix a
panic with checking if the initialized BuilderSet has an entry for the
test builder.
  • Loading branch information
nywilken committed Nov 23, 2023
1 parent efe182b commit a25e03e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acctest/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ func Test(t TestT, c TestCase) {
Components: packer.ComponentFinder{
PluginConfig: &packer.PluginConfig{
Builders: TestBuilderSet{
BuilderSet: packersdk.MapOfBuilder{
"test": func() (packersdk.Builder, error) { return c.Builder, nil },
},
StartFn: func(n string) (packersdk.Builder, error) {
if n == "test" {
return c.Builder, nil
Expand Down

0 comments on commit a25e03e

Please sign in to comment.