You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor integration test to use explicit endpoint field
Address code review feedback by replacing string-based test logic with
explicit struct fields. Instead of using tc.name to determine the endpoint
for streamable HTTP tests, add an 'endpoint' field to the test case struct.
This makes the test logic more explicit and less fragile, following
better testing practices by avoiding logic based on test names.
Changes:
- Add 'endpoint' field to test case struct for streamable-http transport
- Remove tc.name == 'Streamable HTTP with custom path' logic
- Use tc.endpoint directly for streamable HTTP server setup
- Maintain same test coverage with cleaner, more maintainable code
0 commit comments