Skip to content

Commit 5a35b9e

Browse files
committed
tests: Parallelize templateTestList.run
Because why not.
1 parent f784650 commit 5a35b9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/template/template_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ type templateTestList []struct {
1919

2020
func (tests templateTestList) run(t *testing.T, prefix string) {
2121
for n, test := range tests {
22+
test := test
2223
tmplName := fmt.Sprintf("%s-test-%d", prefix, n)
2324
t.Run(tmplName, func(t *testing.T) {
25+
t.Parallel()
2426
tmpl := template.Must(newTemplate(tmplName).Parse(test.tmpl))
2527

2628
var b bytes.Buffer

0 commit comments

Comments
 (0)