Skip to content

Commit

Permalink
Fix a test that flakes with gotestsum
Browse files Browse the repository at this point in the history
The t.Parallel here could possibly cause test output swallow --- PASS, which is basically what all go test result to json output relies on.

Related: gotestyourself/gotestsum#141
  • Loading branch information
chaodaiG committed Oct 11, 2021
1 parent 4d7f10a commit 09c2389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gopherage/cmd/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func ValidateAbs(Flags *Flags, r gitRunner) error {
ref, err := r("branch", "--show-current")

if err != nil {
fmt.Fprintf(os.Stderr, "Failed to fetch ref from within covered repo: %v. Defaulting to HEAD", err)
fmt.Fprintf(os.Stderr, "Failed to fetch ref from within covered repo: %v. Defaulting to HEAD\n", err)
ref = "HEAD"
}
Flags.ref = ref
Expand Down

0 comments on commit 09c2389

Please sign in to comment.