diff --git a/post-processor/vagrant/post-processor_test.go b/post-processor/vagrant/post-processor_test.go index 7e6be2b29..372e1da68 100644 --- a/post-processor/vagrant/post-processor_test.go +++ b/post-processor/vagrant/post-processor_test.go @@ -137,11 +137,16 @@ func TestPostProcessorPrepare_vagrantfileTemplateExists(t *testing.T) { t.Fatalf("err: %s", err) } + var p PostProcessor + + if err := p.Configure(c); err != nil { + t.Fatal("no error expected as vagrantfile_template exists") + } + if err := os.Remove(name); err != nil { t.Fatalf("err: %s", err) } - var p PostProcessor if err := p.Configure(c); err == nil { t.Fatal("expected an error since vagrantfile_template does not exist") }