Skip to content

Improve test utils for running request #512

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
merged 1 commit into from
Dec 3, 2021

Conversation

fabianfett
Copy link
Member

Motivation

To land the support for async/await, we need test utilities. We already have a MockRequestExecutor. Let's improve this to better handle on and off request processing.

Changes

  • Move MockRequestExecutor into its own file
  • Add blocking APIs to MockRequestExecutor when called from another thread

@fabianfett fabianfett added the semver/none No version bump required. label Dec 3, 2021
@fabianfett fabianfett requested a review from dnadoba December 3, 2021 13:04
@fabianfett
Copy link
Member Author

Nightly fails because of Sendable requirements.

@fabianfett fabianfett merged commit 65d97ff into swift-server:main Dec 3, 2021
@fabianfett fabianfett deleted the ff-request-executor-tests branch December 3, 2021 15:33
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.

2 participants