Skip to content

Commit

Permalink
format test can be parallel.
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Jul 21, 2023
1 parent 9988559 commit cc55b36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/internal/scdiff/app/format/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
)

func TestJSON(t *testing.T) {
t.Parallel()
tests := []struct {
name string
a, b pkg.ScorecardResult
Expand Down Expand Up @@ -147,6 +148,7 @@ func TestJSON(t *testing.T) {
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
var bufA, bufB bytes.Buffer
err := JSON(&tt.a, &bufA)
if err != nil {
Expand Down

0 comments on commit cc55b36

Please sign in to comment.