summaryrefslogtreecommitdiff
path: root/decode_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 /decode_test.go
parent659b2cd182132b0827484855689e3d21e8d9ce9f (diff)
.golangci.yml: Turn on 'paralleltest', fix
Diffstat (limited to 'decode_test.go')
-rw-r--r--decode_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/decode_test.go b/decode_test.go
index 90729fa..73ce903 100644
--- a/decode_test.go
+++ b/decode_test.go
@@ -13,6 +13,7 @@ import (
)
func TestDecodeNumber(t *testing.T) {
+ t.Parallel()
r := strings.NewReader(`1{}`)
var num int
@@ -22,6 +23,7 @@ func TestDecodeNumber(t *testing.T) {
}
func TestDecodeObject(t *testing.T) {
+ t.Parallel()
err := DecodeObject(strings.NewReader(`{"foo":9}`),
func(r io.RuneScanner) error {
return nil