After go upgrade to 1.15, the test code that can pass 1.13 cannot pass #42390
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have a http server code and a test code for it. I can pass the test normally using go test -coverprofile=coverage.out -v in go1.13, but use go test -coverprofile=coverage.out in go1.15 -v will display could not shutdown the server: context canceled. There is no problem when using go test -v -cover, that is, only using go test -coverprofile=coverage.out -v in go1.15 will cause an error and fail the test
this is my server_test.go
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: