Skip to content
Discussion options

You must be logged in to vote

Overkill how? It's how we test axum internally and we've had no issues with it.

So seems fine to me 😊

Whilst I wouldn't recommend it a different way of "faking a connection" is that you manually insert a ConnectInfo of the right type as an extension on the test request. The 500 you're seeing comes from the extension not being set. I wouldn't recommend this because there is no guarantee the internals won't change in the future, although we have no such plans currently.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tgecho
Comment options

@davidpdrsn
Comment options

@tgecho
Comment options

Answer selected by tgecho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants