Skip to content

Conversation

@banool
Copy link

@banool banool commented Feb 23, 2024

With the signature of TestClient::new as it is, it is not possible to do the following:

TestClient::new(test_app.into_make_service_with_connect_info::<SocketAddr>())

It seems like Hyper doesn't expose MakeServiceRef anymore so it might be hard to make the signature of TestClient (specifically the generic S) allow this.

Rather than address that, this PR makes the connect info available by enabling it on the app internally.

Let me know what you think!

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