chore: Apply linter fixes to MCP integration tests

This commit is contained in:
dexhorthy
2025-08-13 20:01:07 -07:00
parent d4d7c39fef
commit 209ff1055c
2 changed files with 4 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ func TestMCPClaudeCodeSessionIDCorrelation(t *testing.T) {
os.Setenv("HUMANLAYER_DAEMON_SOCKET", socketPath)
os.Setenv("HUMANLAYER_DAEMON_HTTP_PORT", fmt.Sprintf("%d", httpPort))
os.Setenv("HUMANLAYER_DAEMON_HTTP_HOST", "127.0.0.1")
os.Setenv("HUMANLAYER_API_KEY", "") // Disable cloud API
os.Setenv("HUMANLAYER_API_KEY", "") // Disable cloud API
os.Setenv("MCP_AUTO_DENY_ALL", "true") // Auto-deny for predictable responses
// Create isolated config

View File

@@ -161,9 +161,9 @@ func TestMCPHeaderTransmission(t *testing.T) {
"type": "http",
"url": fmt.Sprintf("%s/mcp", baseURL),
"headers": map[string]string{
"X-Session-ID": testSessionID,
"X-Custom-Header": "custom-value",
"Authorization": "Bearer test-token",
"X-Session-ID": testSessionID,
"X-Custom-Header": "custom-value",
"Authorization": "Bearer test-token",
},
},
},