updated token for tests

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-11-04 10:09:43 -04:00
parent 54f4c82007
commit f134ac27b6
2 changed files with 4 additions and 4 deletions

View File

@@ -471,7 +471,7 @@ func TestDigitalOceanAsDocFromSHA(t *testing.T) {
BaseURL: baseURL,
}
if os.Getenv("GITHUB_TOKEN") != "" {
if os.Getenv("GH_PAT") != "" {
client := &http.Client{
Timeout: time.Second * 60,
}
@@ -501,7 +501,7 @@ func TestDigitalOceanAsDocFromMain(t *testing.T) {
BaseURL: baseURL,
}
if os.Getenv("GITHUB_TOKEN") != "" {
if os.Getenv("GH_PAT") != "" {
client := &http.Client{
Timeout: time.Second * 60,
}

View File

@@ -159,8 +159,8 @@ func TestSpecIndex_DigitalOcean(t *testing.T) {
// create a handler that uses an env variable to capture any GITHUB_TOKEN in the OS ENV
// and inject it into the request header, so this does not fail when running lots of local tests.
if os.Getenv("GITHUB_TOKEN") != "" {
fmt.Println("GITHUB_TOKEN found, setting remote handler func")
if os.Getenv("GH_PAT") != "" {
fmt.Println("GH_PAT found, setting remote handler func")
client := &http.Client{
Timeout: time.Second * 120,
}