mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user