Skip to content

Conversation

@fabianfett
Copy link
Member

@fabianfettfabianfett 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.
@fabianfettfabianfettforce-pushed the ff-fix-test-that-rely-on-timing branch from 6986d18 to 735e09bCompareJune 16, 2021 09:28
@fabianfettfabianfett changed the title Fixes the DelayOnHeadDelegate test utilityMake DelayOnHeadDelegate resilientJun 16, 2021
@fabianfett
Copy link
MemberAuthor

@swift-server-bot test this please

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

@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

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

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

Labels

semver/noneNo version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@fabianfett@Lukasa@Davidde94