Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/godoc: fix TestWeb for versions < 1.11
The test was looking for strings found in specific Go versions without checking for the actual Go version running the test. Used ReleaseTags to check whether the current go version should execute a test or not. P.S. The version info is inferred from the binary running the test. But the test builds godoc using the "go" binary in $PATH. In case one is testing different go versions, please ensure to run tests by changing the $PATH variable to point to different go versions, rather than using a custom go binary in a different path. Fixes golang/go#26531 Change-Id: I16dda81518021e865e79c9c29fc2d9e8a83e7057 Reviewed-on: https://go-review.googlesource.com/125755 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
- Loading branch information