mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
Use internal mock host for release assets
This commit is contained in:
@@ -9,6 +9,7 @@ services:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- PORT=8080
|
||||
- MOCK_BASE_URL=http://mock-github:8080
|
||||
# Control test scenarios via environment variables
|
||||
- MOCK_CHECKSUM_ERROR=${MOCK_CHECKSUM_ERROR:-false}
|
||||
- MOCK_NETWORK_ERROR=${MOCK_NETWORK_ERROR:-false}
|
||||
|
||||
@@ -107,7 +107,7 @@ func main() {
|
||||
}
|
||||
|
||||
limiter := newRateLimiter()
|
||||
baseURL := fmt.Sprintf("http://localhost:%s", port)
|
||||
baseURL := getenvDefault("MOCK_BASE_URL", fmt.Sprintf("http://mock-github:%s", port))
|
||||
|
||||
// Environment-controlled behavior
|
||||
checksumError := os.Getenv("MOCK_CHECKSUM_ERROR") == "true"
|
||||
|
||||
Reference in New Issue
Block a user