getE2EToken ensures the environment variable is checked only once and returns the token
(t *testing.T)
| 44 | |
| 45 | // getE2EToken ensures the environment variable is checked only once and returns the token |
| 46 | func getE2EToken(t *testing.T) string { |
| 47 | getTokenOnce.Do(func() { |
| 48 | token = os.Getenv("GITHUB_MCP_SERVER_E2E_TOKEN") |
| 49 | if token == "" { |
| 50 | t.Fatalf("GITHUB_MCP_SERVER_E2E_TOKEN environment variable is not set") |
| 51 | } |
| 52 | }) |
| 53 | return token |
| 54 | } |
| 55 | |
| 56 | // getE2EHost ensures the environment variable is checked only once and returns the host |
| 57 | func getE2EHost() string { |
no outgoing calls
no test coverage detected