Closed
Description
What version of Go are you using (go version
)?
$ go version go version devel +83f205fa88 Sun May 12 02:55:19 2019 +0000 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/cuonglm/.cache/go-build" GOENV="/home/cuonglm/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/cuonglm/go" GOPROXY="direct" GOROOT="/home/cuonglm/sources/go" GOSUMDB="off" GOTMPDIR="" GOTOOLDIR="/home/cuonglm/sources/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build766721718=/tmp/go-build -gno-record-gcc-switches"
What did you do?
From git root repo
$ cd src/net/http
$ go test -run TestTransportMaxConnsPerHost -count=100 -race
What did you expect to see?
Test passed
What did you see instead?
--- FAIL: TestTransportMaxConnsPerHost (0.07s)
transport_test.go:661: Too many get connections (http2): 2
transport_test.go:676: Too many get connections (http2): 3
--- FAIL: TestTransportMaxConnsPerHost (0.03s)
transport_test.go:661: Too many get connections (http2): 2
transport_test.go:676: Too many get connections (http2): 3
--- FAIL: TestTransportMaxConnsPerHost (0.08s)
transport_test.go:661: Too many get connections (http2): 2
transport_test.go:676: Too many get connections (http2): 3
--- FAIL: TestTransportMaxConnsPerHost (0.06s)
transport_test.go:661: Too many get connections (http2): 2
transport_test.go:676: Too many get connections (http2): 3
--- FAIL: TestTransportMaxConnsPerHost (0.03s)
transport_test.go:661: Too many get connections (http2): 2
transport_test.go:676: Too many get connections (http2): 3
FAIL
exit status 1
FAIL net/http 4.433s