summaryrefslogtreecommitdiff
path: root/encode_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 /encode_test.go
parent659b2cd182132b0827484855689e3d21e8d9ce9f (diff)
.golangci.yml: Turn on 'paralleltest', fix
Diffstat (limited to 'encode_test.go')
-rw-r--r--encode_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/encode_test.go b/encode_test.go
index e50ddd0..df12582 100644
--- a/encode_test.go
+++ b/encode_test.go
@@ -12,6 +12,7 @@ import (
)
func TestEncoder(t *testing.T) {
+ t.Parallel()
var out strings.Builder
enc := NewEncoder(&out)
@@ -24,6 +25,7 @@ func TestEncoder(t *testing.T) {
}
func TestEncoderIndent(t *testing.T) {
+ t.Parallel()
var out strings.Builder
enc := NewEncoder(&ReEncoder{
Out: &out,
@@ -41,6 +43,7 @@ func TestEncoderIndent(t *testing.T) {
}
func TestEncode(t *testing.T) {
+ t.Parallel()
var out strings.Builder
assert.NoError(t, NewEncoder(&out).Encode(1))