diff --git a/config_test.go b/config_test.go index cd0785796..580854fa7 100644 --- a/config_test.go +++ b/config_test.go @@ -110,7 +110,8 @@ func TestLoadExternalComponentsFromConfig_onlyProvisioner(t *testing.T) { func TestLoadSingleComponent(t *testing.T) { - tmpFile, err := ioutil.TempFile(".", "packer-builder-") + // .exe will work everyone for testing purpose, but mostly here to help Window's test runs. + tmpFile, err := ioutil.TempFile(".", "packer-builder-*.exe") if err != nil { t.Fatalf("failed to create test file with error: %s", err) }