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(playback): consistently check for destroyed attribute #2152

Merged
merged 1 commit into from Feb 27, 2021

Conversation

mastermatt
Copy link
Member

Node, as of 14.1, started migrating the Client Request terminology from
aborted to destroyed. In order to supported our current Node version
support, 10.x+, we need to check both flags. Nock was already doing this
in the router, but not during playback.

Identified from #2146

Node, as of 14.1, started migrating the Client Request terminology from
`aborted` to `destroyed`. In order to supported our current Node version
support, 10.x+, we need to check both flags. Nock was already doing this
in the router, but not during playback.
*
* @param {ClientRequest} req
* @returns {boolean}
*/
Copy link
Member

Choose a reason for hiding this comment

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

love all the context in the comment 👏

Copy link
Member

Choose a reason for hiding this comment

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

Same! Thank you, @mastermatt.

@mastermatt mastermatt merged commit b9758c8 into nock:main Feb 27, 2021
@mastermatt mastermatt deleted the 2146-req-destroyed branch February 27, 2021 03:22
@github-actions
Copy link

🎉 This PR is included in version 13.0.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants