Skip to content

Commit

Permalink
cmd/go/internal/modfetch/codehost: skip tests that fail due to tag mi…
Browse files Browse the repository at this point in the history
…smatches

For #56881.

Change-Id: If9d8fa2942e4dd8da5e673631cdc277e0fe6c962
Reviewed-on: https://go-review.googlesource.com/c/go/+/492975
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
  • Loading branch information
Bryan C. Mills authored and gopherbot committed May 5, 2023
1 parent 2fd8c5b commit fe10464
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmd/go/internal/modfetch/codehost/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ func TestLatest(t *testing.T) {
t.Fatal(err)
}
if !reflect.DeepEqual(info, tt.info) {
if !reflect.DeepEqual(info.Tags, tt.info.Tags) {
testenv.SkipFlaky(t, 56881)
}
t.Errorf("Latest: incorrect info\nhave %+v (origin %+v)\nwant %+v (origin %+v)", info, info.Origin, tt.info, tt.info.Origin)
}
}
Expand Down Expand Up @@ -609,6 +612,9 @@ func TestStat(t *testing.T) {
}
info.Origin = nil // TestLatest and ../../../testdata/script/reuse_git.txt test Origin well enough
if !reflect.DeepEqual(info, tt.info) {
if !reflect.DeepEqual(info.Tags, tt.info.Tags) {
testenv.SkipFlaky(t, 56881)
}
t.Errorf("Stat: incorrect info\nhave %+v\nwant %+v", *info, *tt.info)
}
}
Expand Down

0 comments on commit fe10464

Please sign in to comment.