-
Notifications
You must be signed in to change notification settings - Fork 63
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
Redesign tests based on QueueTestHead
and onFinalizeWeak
#703
Labels
Comments
I think this issue may be the root cause of why we have marked so many tests in |
Shouldn't this be moved to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Http1ClientStageSuite
andClientTimeoutSuite
."Idle timeout on slow POST body"
use a combo ofQueueTestHead
to mock the network side of the connection andrequest.body.onFinalizeWeak
to trigger some action inQueueTestHead
. In these testsonFinalizeWeak
is meant to detect when the request has been sent. The problem is that finalisation of the request body stream, does not guarantee the request has been sent. This can be clearly seen in the code oforg.http4s.blazecore.util.EntityBodyWriter#writeEntityBody
wherewriteEnd
is executed afterdrain
:This issue leads to flaky tests like this one:
https://github.com/http4s/http4s/runs/4498891671?check_suite_focus=true#step:13:5129
The text was updated successfully, but these errors were encountered: