async-h1
async-h1 copied to clipboard
Implement tests to expose sequencing bugs
Regarding the addition of a sleep to accept_one:
This is used by the test_accept_partial_read_sequential_requests test to make it easier to reproduce the problem. Hopefully you agree that such a delay could naturally occur in a complex program given the surrounding async operations, and that if introducing a delay here causes a problem, then the code already had a bug. If not, then ignore that test.
Identical tests have been added to #179 to show that it fixes these issues.
@yoshuawuyts did you have a chance to review these test cases?