Skip to content

Refactor URLSession tests to only run with a single instance server #1062

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
Jun 24, 2017
Merged

Refactor URLSession tests to only run with a single instance server #1062

merged 1 commit into from
Jun 24, 2017

Conversation

DunnCoding
Copy link
Contributor

@DunnCoding DunnCoding commented Jun 23, 2017

Previously any test that needed a server would create it's own. While not an issue at the moment it's clear this wouldn't scale very well. This change creates a single server at the start of the tests, and then all the tests use this server.
This PR addresses SR-4676.

I've run the tests on both Mac and Linux to confirm they all pass.

@pushkarnk
Copy link
Member

Thanks for getting this done!

@swift-ci please test and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants