e2e: have e2e use ci.Parallel

This is a followup to having tests run in serial in CI.

The e2e package isn't in CI, but lets use the helper anyway
so we can setup semgrep rules covering the entire repository.
This commit is contained in:
Seth Hoenig
2022-03-17 08:37:34 -05:00
parent 3695901441
commit 7e6767ddf8
3 changed files with 9 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import (
"strings"
"testing"
"github.com/hashicorp/nomad/ci"
"github.com/stretchr/testify/require"
)
@@ -212,7 +213,7 @@ func (f *Framework) runCase(t *testing.T, s *TestSuite, c TestCase) {
t.Run(c.Name(), func(t *testing.T) {
// If the TestSuite has Parallel set, all cases run in parallel
if s.Parallel {
t.Parallel()
ci.Parallel(t)
}
f := newF(t)