Skip to content

Commit fe10464

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
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 <[email protected]> Auto-Submit: Bryan Mills <[email protected]> Reviewed-by: Russ Cox <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 2fd8c5b commit fe10464

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cmd/go/internal/modfetch/codehost/git_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ func TestLatest(t *testing.T) {
234234
t.Fatal(err)
235235
}
236236
if !reflect.DeepEqual(info, tt.info) {
237+
if !reflect.DeepEqual(info.Tags, tt.info.Tags) {
238+
testenv.SkipFlaky(t, 56881)
239+
}
237240
t.Errorf("Latest: incorrect info\nhave %+v (origin %+v)\nwant %+v (origin %+v)", info, info.Origin, tt.info, tt.info.Origin)
238241
}
239242
}
@@ -609,6 +612,9 @@ func TestStat(t *testing.T) {
609612
}
610613
info.Origin = nil // TestLatest and ../../../testdata/script/reuse_git.txt test Origin well enough
611614
if !reflect.DeepEqual(info, tt.info) {
615+
if !reflect.DeepEqual(info.Tags, tt.info.Tags) {
616+
testenv.SkipFlaky(t, 56881)
617+
}
612618
t.Errorf("Stat: incorrect info\nhave %+v\nwant %+v", *info, *tt.info)
613619
}
614620
}

0 commit comments

Comments
 (0)