diff --git a/config_test.go b/config_test.go index 79f16de13..1a342b46c 100644 --- a/config_test.go +++ b/config_test.go @@ -90,6 +90,7 @@ func TestEnvVarPackerPluginPath_MultiplePaths(t *testing.T) { if err != nil { t.Fatalf("Failed to create a temporary test dir.") } + defer os.Remove(decoyDir) pluginPath := dir + pathsep + decoyDir