feat: add log if github is rate limiting

This commit is contained in:
2026-02-10 20:46:05 +00:00
parent f79c9f2865
commit 031b01ac37
2 changed files with 18 additions and 0 deletions
+6
View File
@@ -20,6 +20,12 @@ func TestGetPushPatches(t *testing.T) {
func TestGetUniqTzFromPatches(t *testing.T) {
// another test in the same vein
patches, _ := getPushPatches("torvalds")
if len(patches) == 0 {
// you might be getting rate limited
t.Fatalf("no patches found")
}
tzs, err := getUniqueTzFromPatches(patches)
if err != nil {
t.Fatal(err)