Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Mint 1.6 #287

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Require Mint 1.6 #287

merged 1 commit into from
Aug 5, 2024

Conversation

wojtekmach
Copy link
Contributor

This is in preparation for #274.

As mentioned in #274 (comment), the test change is caused by upstream change in Mint.

@@ -235,9 +235,6 @@ defmodule Finch.HTTP2.PoolTest do
])

assert_receive {:resp, {:ok, _}}

assert_recv_frames([rst_stream(stream_id: ^stream_id, error_code: :no_error)])

Copy link
Contributor Author

@wojtekmach wojtekmach Aug 5, 2024

Choose a reason for hiding this comment

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

@sneako tbh I'm not sure what this whole test is/was testing, it's not asserting on:

assert_receive {:resp, {:error, %Finch.Error{reason: :request_timeout}}}

like other similar tests do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zachallaun blast from the past! Could you help changing this test? Or if it outlived its usefulness, we let it go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nevermind, you showed up in git blame but I think you were just moving code around, sorry about that!

Copy link
Owner

Choose a reason for hiding this comment

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

I think its just testing the happy path? Seems fine to me to delete this assertion, let's do it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sneako per:

test "request timeout with timeout > 0 that fires after request is done"

it makes sense we don't assert on any returned errors because there aren't any. Perhaps this test was asserting the side effects (a frame with no_error from Mint) but since there aren't any, perhaps it's not so useful anymore. Probably OK to to keep it though!

@sneako
Copy link
Owner

sneako commented Aug 5, 2024

Thanks again Wojtek!

@sneako sneako merged commit 2f94f48 into sneako:main Aug 5, 2024
2 checks passed
@wojtekmach wojtekmach deleted the wm-update-mint branch August 5, 2024 11:32
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.

2 participants