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 #992 Bind the socket event listener to the request object #993

Merged
merged 2 commits into from
Oct 15, 2017

Conversation

rsimp
Copy link

@rsimp rsimp commented Oct 11, 2017

Backport of 50859e5 from 9.0.x to 8.2.x. Fixes compatibility with Axios. Fixes #992.

@rsimp
Copy link
Author

rsimp commented Oct 11, 2017

Weird the tests all ran fine locally:
image

@rsimp
Copy link
Author

rsimp commented Oct 11, 2017

Oh it appears its just node.js 0.10 that is failing, does this need to be supported? Also if these changes failed 8.2.1 probably failed as well.

@rsimp
Copy link
Author

rsimp commented Oct 11, 2017

Using nvm to switch over to node 0.10 and then running:
rm -rf node_modules/ && npm install && npm test

I've ascertained that the same test has failed on node 0.10 since v8.1.0 and v8.0.0 won't run entirely due to a forEach issue.

The test that's failing is issue #163 - Authorization header isn\'t mocked inside test/test_intercept.js. It's timing out when trying to issue a non mocked call to www.example.com.

@rsimp rsimp changed the title Bind the socket event listener to the request object Fix #992 Bind the socket event listener to the request object Oct 11, 2017
);
r.end();
}
if (process.versions.node >= '0.11' ) {
Copy link
Author

Choose a reason for hiding this comment

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

This was the only line added

@nock nock deleted a comment from coveralls Oct 15, 2017
@nock nock deleted a comment from coveralls Oct 15, 2017
@nock nock deleted a comment from coveralls Oct 15, 2017
@gr2m
Copy link
Member

gr2m commented Oct 15, 2017

Oh it appears its just node.js 0.10 that is failing, does this need to be supported? Also if these changes failed 8.2.1 probably failed as well.

No they don’t, see the supported versions at https://github.com/node-nock/nock#node-version-support

Your PR is great as is though, I’ll make a follow up PR which removes testing the old Node versions and any references to them in the code.

@lock
Copy link

lock bot commented Sep 13, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!

@lock lock bot locked as resolved and limited conversation to collaborators Sep 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants