From: Bryan C. Mills Date: Fri, 5 May 2023 13:09:00 +0000 (-0400) Subject: cmd/go/internal/modfetch/codehost: skip tests that fail due to tag mismatches X-Git-Tag: go1.21rc1~670 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fe10464358057778732e9c958683039beb64e61a;p=gostls13.git cmd/go/internal/modfetch/codehost: skip tests that fail due to tag mismatches For #56881. Change-Id: If9d8fa2942e4dd8da5e673631cdc277e0fe6c962 Reviewed-on: https://go-review.googlesource.com/c/go/+/492975 Run-TryBot: Bryan Mills Auto-Submit: Bryan Mills Reviewed-by: Russ Cox TryBot-Result: Gopher Robot --- diff --git a/src/cmd/go/internal/modfetch/codehost/git_test.go b/src/cmd/go/internal/modfetch/codehost/git_test.go index 084167e4df..cb0f501b9a 100644 --- a/src/cmd/go/internal/modfetch/codehost/git_test.go +++ b/src/cmd/go/internal/modfetch/codehost/git_test.go @@ -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) } } @@ -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) } }