Skip to content

Commit

Permalink
Remove extra newlines when no-summary=output
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Oct 11, 2020
1 parent e3cd29c commit 1530e18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion testjson/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ func writeTestCaseSummary(out io.Writer, execution executionSummary, conf testCa
}
fmt.Fprint(out, line)
}
fmt.Fprintln(out)
if _, isNoOutput := execution.(*noOutputSummary); !isNoOutput {
fmt.Fprintln(out)
}
}
}

Expand Down
5 changes: 0 additions & 5 deletions testjson/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,12 @@ DONE 13 tests, 1 skipped, 4 failures, 1 error in 34.123s
=== Skipped
=== SKIP: project/pkg/more TestOnlySometimes (0.00s)
=== Failed
=== FAIL: project/badmain (0.00s)
=== FAIL: project/fs TestFileDo (1.41s)
=== FAIL: project/fs TestFileDoError (0.01s)
=== FAIL: project/pkg/more TestAlbatross (0.04s)
=== Errors
pkg/file.go:99:12: missing ',' before newline
Expand Down

0 comments on commit 1530e18

Please sign in to comment.