mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user