From bdfb423cbaff683269c7448afe6d93d224c5a482 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 27 Jan 2023 00:02:29 -0700 Subject: .golangci.yml: Turn on 'paralleltest', fix --- reencode_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'reencode_test.go') diff --git a/reencode_test.go b/reencode_test.go index 7f1634f..f4b962f 100644 --- a/reencode_test.go +++ b/reencode_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2022 Luke Shumaker +// Copyright (C) 2022-2023 Luke Shumaker // // SPDX-License-Identifier: GPL-2.0-or-later @@ -12,6 +12,7 @@ import ( ) func TestReEncode(t *testing.T) { + t.Parallel() type testcase struct { enc ReEncoder in any @@ -121,7 +122,9 @@ func TestReEncode(t *testing.T) { }, } for tcName, tc := range testcases { + tc := tc t.Run(tcName, func(t *testing.T) { + t.Parallel() var out strings.Builder fmter := tc.enc fmter.Out = &out -- cgit v1.2.3-2-g168b