aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode_test.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2016-11-04 05:28:01 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-11-04 16:56:57 +0000
commit23416315060bf7601e5779c3a6a2529d4d604584 (patch)
treecbfc11128e579a983691f5b96c224516450bf874 /src/encoding/json/encode_test.go
parent3f69909851813006216f49083932badee396c4f1 (diff)
downloadgo-23416315060bf7601e5779c3a6a2529d4d604584.tar.xz
all: sprinkle t.Parallel on some slow tests
I used the slowtests.go tool as described in https://golang.org/cl/32684 on packages that stood out. go test -short std drops from ~56 to ~52 seconds. This isn't a huge win, but it was mostly an exercise. Updates #17751 Change-Id: I9f3402e36a038d71e662d06ce2c1d52f6c4b674d Reviewed-on: https://go-review.googlesource.com/32751 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/encode_test.go')
-rw-r--r--src/encoding/json/encode_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/encoding/json/encode_test.go b/src/encoding/json/encode_test.go
index 28feeeffdf..b2c9e91dde 100644
--- a/src/encoding/json/encode_test.go
+++ b/src/encoding/json/encode_test.go
@@ -378,6 +378,7 @@ func TestDuplicatedFieldDisappears(t *testing.T) {
}
func TestStringBytes(t *testing.T) {
+ t.Parallel()
// Test that encodeState.stringBytes and encodeState.string use the same encoding.
var r []rune
for i := '\u0000'; i <= unicode.MaxRune; i++ {
@@ -616,6 +617,7 @@ var badFloatREs = []*regexp.Regexp{
}
func TestMarshalFloat(t *testing.T) {
+ t.Parallel()
nfail := 0
test := func(f float64, bits int) {
vf := interface{}(f)