Skip to content

Commit

Permalink
acc: do not show diff for missing output file (#2350)
Browse files Browse the repository at this point in the history
It's not interesting since it just dumps what is in the repo. This is
especially annoying with bundle/templates tests with a lot of files.
  • Loading branch information
denik authored Feb 13, 2025
1 parent fac9bcf commit 2d09636
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ func doComparison(t *testing.T, repls testdiff.ReplacementsContext, dirRef, dirN

// The test did not produce an expected output file.
if okRef && !okNew {
t.Errorf("Missing output file: %s\npathRef: %s\npathNew: %s", relPath, pathRef, pathNew)
testdiff.AssertEqualTexts(t, pathRef, pathNew, valueRef, valueNew)
t.Errorf("Missing output file: %s", relPath)
if testdiff.OverwriteMode {
t.Logf("Removing output file: %s", relPath)
require.NoError(t, os.Remove(pathRef))
Expand Down

0 comments on commit 2d09636

Please sign in to comment.