diff options
author | Tim Cooper <tim.cooper@layeh.com> | 2018-06-18 12:48:30 -0300 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-08-21 02:37:19 +0000 |
commit | 3333b6407d8bae64cb8bf62de1425abd8714a51c (patch) | |
tree | da1368b1d9c9d732c4f5920bd8ca9f8b314cf29c /src/net/http/header_test.go | |
parent | bc276c585b24a5e3adb9c6cdfebc4d69d910cc2e (diff) | |
download | go-3333b6407d8bae64cb8bf62de1425abd8714a51c.tar.gz go-3333b6407d8bae64cb8bf62de1425abd8714a51c.zip |
net/http: use internal/race
Change-Id: Iaa5ded13e8ab4753e2e3d04c9fff203d854208ba
Reviewed-on: https://go-review.googlesource.com/119435
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/net/http/header_test.go')
-rw-r--r-- | src/net/http/header_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/http/header_test.go b/src/net/http/header_test.go index bbd35c485a..48158d313a 100644 --- a/src/net/http/header_test.go +++ b/src/net/http/header_test.go @@ -6,6 +6,7 @@ package http import ( "bytes" + "internal/race" "runtime" "testing" "time" @@ -196,7 +197,7 @@ func TestHeaderWriteSubsetAllocs(t *testing.T) { if testing.Short() { t.Skip("skipping alloc test in short mode") } - if raceEnabled { + if race.Enabled { t.Skip("skipping test under race detector") } if runtime.GOMAXPROCS(0) > 1 { |