aboutsummaryrefslogtreecommitdiff
path: root/services/migrations/github_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/migrations/github_test.go')
-rw-r--r--services/migrations/github_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/migrations/github_test.go b/services/migrations/github_test.go
index 7540037d9..3ae8863e1 100644
--- a/services/migrations/github_test.go
+++ b/services/migrations/github_test.go
@@ -17,6 +17,10 @@ import (
)
func TestGitHubDownloadRepo(t *testing.T) {
+ if os.Getenv("GITHUB_READ_TOKEN") == "" {
+ t.Skip("skipped test because GITHUB_READ_TOKEN was not in the environment")
+ }
+
GithubLimitRateRemaining = 3 // Wait at 3 remaining since we could have 3 CI in //
downloader := NewGithubDownloaderV3(context.Background(), "https://github.com", "", "", os.Getenv("GITHUB_READ_TOKEN"), "go-gitea", "test_repo")
err := downloader.RefreshRate()