diff --git a/builder/hyperv/common/output_config_test.go b/builder/hyperv/common/output_config_test.go index a4d8e7999..ebd91eab1 100644 --- a/builder/hyperv/common/output_config_test.go +++ b/builder/hyperv/common/output_config_test.go @@ -39,7 +39,7 @@ func TestOutputConfigPrepare_exists(t *testing.T) { PackerForce: false, } errs := c.Prepare(testConfigTemplate(t), pc) - if len(errs) != 0 { - t.Fatal("should not have errors") + if len(errs) == 0 { + t.Fatal("should have errors") } }