Skip to content

Commit 530ff90

Browse files
committed
git_sizer_test: also run subtests in parallel
1 parent 04e31f8 commit 530ff90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

git_sizer_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,12 @@ func TestRefSelections(t *testing.T) {
236236
},
237237
},
238238
} {
239+
i, p := i, p
239240
t.Run(
240241
p.name,
241242
func(t *testing.T) {
243+
t.Parallel()
244+
242245
repo := repo.Clone(t, "ref-selection")
243246
defer repo.Remove(t)
244247

@@ -254,7 +257,7 @@ func TestRefSelections(t *testing.T) {
254257
cmd.Stdout = &stdout
255258
var stderr bytes.Buffer
256259
cmd.Stderr = &stderr
257-
err = cmd.Run()
260+
err := cmd.Run()
258261
assert.NoError(t, err)
259262

260263
expectedStderr, expectedUniqueCommitCount := computeExpectations(i)
@@ -484,9 +487,12 @@ References (included references marked with '+'):
484487
`[1:],
485488
},
486489
} {
490+
p := p
487491
t.Run(
488492
p.name,
489493
func(t *testing.T) {
494+
t.Parallel()
495+
490496
repo := repo.Clone(t, "refgroups")
491497
defer repo.Remove(t)
492498

0 commit comments

Comments
 (0)