Update test case for Windows

This commit is contained in:
nywilken 2020-01-17 14:03:35 -05:00
parent c93a076698
commit 93640b0854
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}