You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only slightly non-standard env is GOROOT="/usr/local/other/go". I use this when testing betas and release candidates.
What did you do?
I created a silly test, ran it twice, and saw the result was cached. Then I cleaned the test cache and ran a third time. The test result was still cached.
$ go test silly_test.go
ok command-line-arguments 5.003s
$ go test silly_test.go
ok command-line-arguments (cached)
$ go clean -testcache
$ go test silly_test.go
ok command-line-arguments (cached)
$
However, clearing the entire cache does force a test run.
$ go clean -cache
$ go test silly_test.go
ok command-line-arguments 5.003s
$
What did you expect to see?
A test that took 5 seconds to run.
What did you see instead?
A cached test result.
The text was updated successfully, but these errors were encountered:
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
OutputThe only slightly non-standard env is
GOROOT="/usr/local/other/go"
. I use this when testing betas and release candidates.What did you do?
I created a silly test, ran it twice, and saw the result was cached. Then I cleaned the test cache and ran a third time. The test result was still cached.
However, clearing the entire cache does force a test run.
What did you expect to see?
A test that took 5 seconds to run.
What did you see instead?
A cached test result.
The text was updated successfully, but these errors were encountered: