Skip to content

Conversation

@ajwerner
Copy link
Contributor

@ajwerner ajwerner commented Aug 6, 2024

This commit adds wrappers around futures::future helpers and augments
TestFuture to ensure that the underlying futures are notified before
they are polled. This helps to catch bugs where there are missing notify
calls or bad handling of the waker.

The commit then extends the tests to use these helpers instead of the
library functions from futures.

It also ammends the client_requests::recv_too_big_headers test to no
longer use the tokio spawned tasks that were added in #791.

@ajwerner

This comment was marked as outdated.

This commit adds wrappers around futures::future helpers and augments
TestFuture to ensure that the underlying futures are notified before
they are polled. This helps to catch bugs where there are missing notify
calls or bad handling of the waker.

The commit then extends the tests to use these helpers instead of the
library functions from futures.

It also ammends the client_requests::recv_too_big_headers test to no
longer use the tokio spawned tasks that were added in hyperium#791.
@ajwerner ajwerner marked this pull request as ready for review August 6, 2024 18:38
@ajwerner
Copy link
Contributor Author

ajwerner commented Aug 6, 2024

Feel free to nitpick this, it was done hastily.

@seanmonstar seanmonstar merged commit 36cf4f2 into hyperium:master Aug 6, 2024
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