testing: inconsistent behaviors between running tests directly and after compiling the code first #59879
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
with this code
first I ran it directly
go test parallel_test.go -v
i see the Go process was hang and no response, need ctrl+C to exit
and then I ran it by compiling it first
go test -c -o parallel.test parallel_test.go ./parallel.test -test.v
i see Go panics
What did you expect to see?
The behaviors should be the same between running tests directly and after compiling the code first
What did you see instead?
The behaviors are different. This troubled me when running the same code between some IDEs like Goland (which will compile it first) and CI tools like Jenkins (which will run code directly)
The text was updated successfully, but these errors were encountered: