From 5e9696f57f18e3d41b36cd8edfca05df4cecab72 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 14 Aug 2020 16:01:24 +0900 Subject: [PATCH] Fix test case --- json_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/json_test.go b/json_test.go index a61c4e0..1be6c15 100644 --- a/json_test.go +++ b/json_test.go @@ -223,6 +223,9 @@ func trim(b []byte) []byte { var jsonBig []byte func initBig() { + if len(jsonBig) > 0 { + return + } n := 10000 if testing.Short() { n = 100