Skip to content
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

Fix specs with side effects #12539

Conversation

straight-shoota
Copy link
Member

A couple of specs for URI.default_port mutate the global port defaults which results in unwanted side effects.
This patch ensures to reset the defaults back to the original at the end of the examples.

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:specs topic:stdlib:networking labels Sep 29, 2022
@beta-ziliani beta-ziliani added this to the 1.6.0 milestone Sep 29, 2022
@straight-shoota straight-shoota merged commit 2d6a36e into crystal-lang:master Sep 30, 2022
@straight-shoota straight-shoota deleted the fix/uri-specs-with-side-effects branch September 30, 2022 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:specs topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants