]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.12] cmd/go/internal/modload: remove erroneous test case
authorBryan C. Mills <bcmills@google.com>
Fri, 10 Jan 2020 14:25:51 +0000 (09:25 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 10 Jan 2020 21:56:50 +0000 (21:56 +0000)
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>
src/cmd/go/internal/modload/query_test.go

index d6e52c6b74fd421ce2efae76e37d164abc4e5d70..2b4a871849fa5170eabae5b68859c3bea7b3e3b3 100644 (file)
@@ -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"`},