Skip to content

Commit

Permalink
internal/results: run tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed May 13, 2021
1 parent a5ccd29 commit 2c982c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/results/results_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ import (
var verbose = flag.Bool("verbose", false, "enable verbose logging")

func TestResults(t *testing.T) {
t.Parallel()

as := ensemble.Ensemble()
for _, c := range Results {
c := c // scopelint
t.Run(c.Slug, func(t *testing.T) {
t.Parallel()

// Tests with a best known result are prioritized. Only run all tests in
// stress test mode.
if c.BestKnown == 0 {
Expand Down

0 comments on commit 2c982c1

Please sign in to comment.