Skip to content

Commit

Permalink
net/http: use internal/race
Browse files Browse the repository at this point in the history
Change-Id: Iaa5ded13e8ab4753e2e3d04c9fff203d854208ba
Reviewed-on: https://go-review.googlesource.com/119435
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
Tim Cooper authored and bradfitz committed Aug 21, 2018
1 parent bc276c5 commit 3333b64
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/net/http/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
"time"
)

var raceEnabled = false // set by race.go

// A Header represents the key-value pairs in an HTTP header.
type Header map[string][]string

Expand Down
3 changes: 2 additions & 1 deletion src/net/http/header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package http

import (
"bytes"
"internal/race"
"runtime"
"testing"
"time"
Expand Down Expand Up @@ -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 {
Expand Down
11 changes: 0 additions & 11 deletions src/net/http/race.go

This file was deleted.

0 comments on commit 3333b64

Please sign in to comment.