From fe10464358057778732e9c958683039beb64e61a Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Fri, 5 May 2023 09:09:00 -0400 Subject: [PATCH] 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 --- src/cmd/go/internal/modfetch/codehost/git_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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) } } -- 2.48.1