Skip to content

Make DelayOnHeadDelegate resilient #374

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

Merged

Conversation

fabianfett
Copy link
Member

@fabianfett fabianfett commented Jun 16, 2021

Currently the DelayOnHeadDelegate test utility depends on correct timings. Right now, if a request is slower than 50ms in testErrorAfterCloseWhileBackpressureExerted the test will fail, since the backpressure promise is failed, before a head was received. This pr fixes this, by giving the user a callback, when the head was received.

Currently the DelayOnHeadDelegate test utility depends on correct timings. Right now, if a request is slower than 50ms in  `testErrorAfterCloseWhileBackpressureExerted` the test will fail, since the backpressure promise is failed, before a head was received. This pr fixes this, by giving the user a callback, when the head was received.
@fabianfett fabianfett force-pushed the ff-fix-test-that-rely-on-timing branch from 6986d18 to 735e09b Compare June 16, 2021 09:28
@fabianfett fabianfett changed the title Fixes the DelayOnHeadDelegate test utility Make DelayOnHeadDelegate resilient Jun 16, 2021
@fabianfett
Copy link
Member Author

@swift-server-bot test this please

@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jun 16, 2021
@Lukasa Lukasa merged commit 210b54f into swift-server:main Jun 16, 2021
@fabianfett fabianfett deleted the ff-fix-test-that-rely-on-timing branch June 16, 2021 12:01
@fabianfett
Copy link
Member Author

@Lukasa I just noticed: This only changes test code, but got patch-version-bump-only. For this reason I think we can go with label needs-no-version-bump, which we don't have in AHC at the moment. (Shall I create it?)

@Lukasa
Copy link
Collaborator

Lukasa commented Jun 17, 2021

Sure. I used patch version only because I was too lazy to create the label. 😉

@fabianfett fabianfett added semver/none No version bump required. and removed 🔨 semver/patch No public API change. labels Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants