Skip to content

Conversation

yordis
Copy link
Member

@yordis yordis commented Aug 28, 2025

fixes #450

Signed-off-by: Yordis Prieto [email protected]

@yordis yordis marked this pull request as ready for review August 28, 2025 20:41
@Copilot Copilot AI review requested due to automatic review settings August 28, 2025 20:41
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances response handling in the Tesla Mint adapter to fix issue #450 by improving the message pattern matching robustness and adding comprehensive test coverage.

  • Added error handling patterns for HTTP/2 features and unknown response types
  • Extended test coverage for various response scenarios including timeouts, streaming, and error conditions
  • Improved forward compatibility by gracefully handling unsupported message types

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/tesla/adapter/mint.ex Added pattern matching for error, pong, push_promise, and unknown message types
test/tesla/adapter/mint_test.exs Added comprehensive test suite covering normal requests, errors, timeouts, streaming, and large responses

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@yordis
Copy link
Member Author

yordis commented Aug 28, 2025

@teamon could you give me a hand reviewing this one?

@yordis yordis force-pushed the yordis/fixes-450 branch 3 times, most recently from 40d9899 to 4cc6119 Compare August 28, 2025 20:53
@yordis yordis marked this pull request as draft August 28, 2025 20:56
@yordis yordis marked this pull request as ready for review September 17, 2025 00:06
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.

Mint reduce_responses doesn't handle all possible responses

2 participants