File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "context"
55 "os"
66 "path/filepath"
7+ "strings"
78 "testing"
89 "time"
910)
@@ -73,6 +74,9 @@ func TestFetchRemoteStableModel(t *testing.T) {
7374
7475 model , err := fetchRemoteStableModel (ctx )
7576 if err != nil {
77+ if strings .Contains (err .Error (), "status 403" ) {
78+ t .Skip ("Skipping: GitHub API rate limit (403)" )
79+ }
7680 t .Fatalf ("fetchRemoteStableModel failed: %v" , err )
7781 }
7882
@@ -96,6 +100,10 @@ func TestCheckForUpdates(t *testing.T) {
96100 // Testing with a very old version to trigger the update logic
97101 info , err := CheckForUpdates (ctx , "0.0.1" , true )
98102 if err != nil {
103+ // GitHub API rate-limits unauthenticated requests (403) — skip in CI
104+ if strings .Contains (err .Error (), "status 403" ) {
105+ t .Skip ("Skipping: GitHub API rate limit (403) — expected in CI without auth token" )
106+ }
99107 t .Fatalf ("CheckForUpdates failed: %v" , err )
100108 }
101109
You can’t perform that action at this time.
0 commit comments