getE2EHost ensures the environment variable is checked only once and returns the host
()
| 55 | |
| 56 | // getE2EHost ensures the environment variable is checked only once and returns the host |
| 57 | func getE2EHost() string { |
| 58 | getHostOnce.Do(func() { |
| 59 | host = os.Getenv("GITHUB_MCP_SERVER_E2E_HOST") |
| 60 | }) |
| 61 | return host |
| 62 | } |
| 63 | |
| 64 | func getRESTClient(t *testing.T) *gogithub.Client { |
| 65 | // Get token and ensure Docker image is built |
no outgoing calls
no test coverage detected