Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Go test -v" running for all tests's result(pass) is different form when I'm running individual test(fail) #42966

Closed
koseoyoung opened this issue Dec 3, 2020 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@koseoyoung
Copy link

koseoyoung commented Dec 3, 2020

What version of Go are you using (go version)?

$ go version 
go1.15.2 darwin/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/seoyoungko/Library/Caches/go-build"
GOENV="/Users/seoyoungko/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/seoyoungko/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/seoyoungko/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.15.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/seoyoungko/go/src/github.com/iotexproject/iotex-core/go.mod"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5m/w57_zf0n76s7sy15dpnm9tx00000gn/T/go-build664261744=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

When I run all tests together by "go test -v" cmd, it pass for TestProtocol_ClaimReward test.
However, when I tried to run individual test by "go test -run TestProtocol_ClaimReward" cmd, it failed.

Is it possible to happen?
스크린샷 2020-12-03 오후 5 29 55

스크린샷 2020-12-03 오후 5 30 24

What did you expect to see?

Same result.

What did you see instead?

Different result

@mvdan
Copy link
Member

mvdan commented Dec 3, 2020

Did you raise an issue on that project? It's entirely possible to write a test that fails when testing.Verbose is set, for example.

Also, if you still think this is a bug in Go, please provide clear steps to reproduce, including a git clone.

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 3, 2020
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jan 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants