Closed
Description
What version of Go are you using (go version
)?
$ go version go version go1.14.7 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 GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/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-build248134951=/tmp/go-build -gno-record-gcc-switches"
What did you do?
when running tests with go1.14.6 and go1.14.7 still seeing log output of tests going to the wrong test #39308
tmp.zip
attached program runs a bunch of tests and checks for any output that went to the wrong test. It is a little random sometimes does work. Not positive but it seems to only ever be a TestABC1 & TestABC2 (or vice versa) yet to see one where it ends up on a different subtest for the some one
What did you expect to see?
no output
What did you see instead?
docker build -t gotestissue . && docker run --rm gotestissue Sending build context to Docker daemon 13.82kB Step 1/4 : FROM golang:latest ---> baaca3151cdb Step 2/4 : RUN go version ---> Using cache ---> 01a9e374a96e Step 3/4 : ADD . . ---> Using cache ---> af4f025e4da4 Step 4/4 : CMD ./run.sh ---> Using cache ---> e9586b093b23 Successfully built e9586b093b23 Successfully tagged gotestissue:latest + go version go version go1.14.7 linux/amd64 + go env ----------snip---------- + go run ./bla.go + go test -test.count=1 -json ./... TestABC1/#9599 TestABC2/#9750 {"Time":"2020-08-09T07:22:03.834305536Z","Action":"output","Package":"_/go/test","Test":"TestABC1/#9599","Output":" bla_test.go:43: XYZ TestABC2/#9750\n"} TestABC1/#9634 TestABC2/#9728 {"Time":"2020-08-09T07:22:03.836248518Z","Action":"output","Package":"_/go/test","Test":"TestABC1/#9634","Output":" bla_test.go:43: XYZ TestABC2/#9728\n"} TestABC1/#9635 TestABC2/#9723 {"Time":"2020-08-09T07:22:03.836452744Z","Action":"output","Package":"_/go/test","Test":"TestABC1/#9635","Output":" bla_test.go:43: XYZ TestABC2/#9723\n"} TestABC1/#9714 TestABC2/#9699 {"Time":"2020-08-09T07:22:03.840461239Z","Action":"output","Package":"_/go/test","Test":"TestABC1/#9714","Output":" bla_test.go:43: XYZ TestABC2/#9699\n"}