summaryrefslogtreecommitdiff
path: root/reencode_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-27 00:02:29 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:14:51 -0700
commitbdfb423cbaff683269c7448afe6d93d224c5a482 (patch)
tree2f10c3a13f56f94e498b8e3aac3e519a91d86518 /reencode_test.go
parent659b2cd182132b0827484855689e3d21e8d9ce9f (diff)
.golangci.yml: Turn on 'paralleltest', fix
Diffstat (limited to 'reencode_test.go')
-rw-r--r--reencode_test.go5
1 files changed, 4 insertions, 1 deletions
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 <lukeshu@lukeshu.com>
+// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com>
//
// 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