Skip to content

fix: resolve linting and test errors#386

Merged
lpcox merged 1 commit intomainfrom
lpcox/testing-fixes
Jan 20, 2026
Merged

fix: resolve linting and test errors#386
lpcox merged 1 commit intomainfrom
lpcox/testing-fixes

Conversation

@lpcox
Copy link
Collaborator

@lpcox lpcox commented Jan 20, 2026

  • Remove unused 'log' import from guard/registry.go that conflicted with context.go's logger variable
  • Update transport_test.go to use new responseWriter type API:
    • Use newResponseWriter() constructor instead of struct literal
    • Use StatusCode() and Body() methods instead of direct field access
    • Remove obsolete MultipleWrites_FirstWins test case
  • Fix health endpoint test to expect 'servers' field (not 'protocolVersion')
  • Fix MCP GET test to expect 400 (session required) instead of 405

- Remove unused 'log' import from guard/registry.go that conflicted with
  context.go's logger variable
- Update transport_test.go to use new responseWriter type API:
  - Use newResponseWriter() constructor instead of struct literal
  - Use StatusCode() and Body() methods instead of direct field access
  - Remove obsolete MultipleWrites_FirstWins test case
- Fix health endpoint test to expect 'servers' field (not 'protocolVersion')
- Fix MCP GET test to expect 400 (session required) instead of 405
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant