Skip to content

Commit

Permalink
Testfile: simplify error
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Oct 18, 2023
1 parent d8fa6f5 commit 12377b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testfile/testfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ func equal(t testing.TB, wantFile, gotStr string, trim bool) {
// Remove lingering test failures
_ = os.Remove(badFile)
Write(t, wantFile, gotStr)
t.Cleanup(func() {
t.Fatalf("updated contents of %s", wantFile)
})
t.Errorf("updated contents of %s", wantFile)
return
}
Write(t, badFile, gotStr)
Expand Down

0 comments on commit 12377b0

Please sign in to comment.