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 request test to account for changes to ERR_INVALID_URL in node 16.2.0 #4258

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

nlf
Copy link
Member

@nlf nlf commented Jun 4, 2021

There was a change to the ERR_INVALID_URL constructor to stop reflecting the input in the error message that was landed in node 16.2.0, this adjusts our assertion so that both the new and old message will pass.

An alternative would be to start passing the code property from the error into the response, which I don't really love but one could certainly make a case for.

Copy link
Member

@devinivy devinivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking that down!

@devinivy devinivy added the test Test or coverage label Jun 4, 2021
@devinivy devinivy merged commit a542b0c into master Jun 7, 2021
@devinivy devinivy deleted the nlf/fix-invalid-url-test branch June 7, 2021 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Test or coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants