mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
@@ -471,7 +471,7 @@ func TestDigitalOceanAsDocFromSHA(t *testing.T) {
|
|||||||
BaseURL: baseURL,
|
BaseURL: baseURL,
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.Getenv("GITHUB_TOKEN") != "" {
|
if os.Getenv("GH_PAT") != "" {
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Timeout: time.Second * 60,
|
Timeout: time.Second * 60,
|
||||||
}
|
}
|
||||||
@@ -501,7 +501,7 @@ func TestDigitalOceanAsDocFromMain(t *testing.T) {
|
|||||||
BaseURL: baseURL,
|
BaseURL: baseURL,
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.Getenv("GITHUB_TOKEN") != "" {
|
if os.Getenv("GH_PAT") != "" {
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Timeout: time.Second * 60,
|
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
|
// 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.
|
// and inject it into the request header, so this does not fail when running lots of local tests.
|
||||||
if os.Getenv("GITHUB_TOKEN") != "" {
|
if os.Getenv("GH_PAT") != "" {
|
||||||
fmt.Println("GITHUB_TOKEN found, setting remote handler func")
|
fmt.Println("GH_PAT found, setting remote handler func")
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Timeout: time.Second * 120,
|
Timeout: time.Second * 120,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user