mirror of https://github.com/golang/go.git
[release-branch.go1.12] cmd/go/internal/modload: remove erroneous test case
Commit e0cf3de987e6 of the vcs-test.golang.org/git/querytest repo includes a go.mod file specifying path vcs-test.golang.org/git/querytest.git, as does the latest commit. Since the repository also lacks v3 tags, a query for "latest" with a v3 path should fail. Due to a bug, that query does not fail as expected with Go 1.12. However, we do not need to continue to test for buggy behavior that was fixed in a subsequent release. Updates #36489 Change-Id: I766390c962fc75ba98fad02831310d90abf3055f Reviewed-on: https://go-review.googlesource.com/c/go/+/214281 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
694e20f4e0
commit
9720aff0bc
|
|
@ -119,8 +119,6 @@ var queryTests = []struct {
|
|||
{path: queryRepoV2, query: "v0.0.1+foo", vers: "v2.0.0-20180704023347-179bc86b1be3"},
|
||||
{path: queryRepoV2, query: "latest", vers: "v2.5.5"},
|
||||
|
||||
{path: queryRepoV3, query: "latest", vers: "v3.0.0-20180704024501-e0cf3de987e6"},
|
||||
|
||||
{path: emptyRepo, query: "latest", vers: "v0.0.0-20180704023549-7bb914627242"},
|
||||
{path: emptyRepo, query: ">v0.0.0", err: `no matching versions for query ">v0.0.0"`},
|
||||
{path: emptyRepo, query: "<v10.0.0", err: `no matching versions for query "<v10.0.0"`},
|
||||
|
|
|
|||
Loading…
Reference in New Issue