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

h2-support,h2-tests: add tools to ensure wake #794

Merged
merged 1 commit into from
Aug 6, 2024

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
6 checks passed
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