Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Fixes #3497 #3500

Closed
wants to merge 11 commits into from
Closed

Fixes #3497 #3500

wants to merge 11 commits into from

Conversation

hutkev
Copy link

@hutkev hutkev commented Jun 20, 2012

This iterates all interfaces to locate an IPv4 loopback rather than assuming fixed interface names.
Tested on OS X 10.6.8, CentOS 6.2 (64-bit) & Win XP SP2 (64-bit).

var address = function(a) { assert.deepEqual(a, expected); return true; };
var count = 0;
for (var i in interfaces) {
var addr=interfaces[i].filter(filter).filter(address);
Copy link
Member

Choose a reason for hiding this comment

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

Missing whitespace.

Copy link
Member

Choose a reason for hiding this comment

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

Also, I prefer an iterative approach over a functional one in tests. It's easier to debug when something goes wrong.

@hutkev
Copy link
Author

hutkev commented Jun 22, 2012

Thanks Ben.

I made an unrelated change to fix a jslint warning, assume OK to include these in passing?

Kev

@bnoordhuis
Copy link
Member

Kevin, can you rebase against the latest master? The PR doesn't apply cleanly right now.

@hutkev
Copy link
Author

hutkev commented Jun 23, 2012

Updated and removed a bit of redundant code. Thanks.

@bnoordhuis
Copy link
Member

Kevin, it's still not applying. Can you do a git pull --rebase git://github.com/joyent/node.git master, fix the conflicts and squash your work into one or two commits with git rebase -i?

@hutkev
Copy link
Author

hutkev commented Jun 30, 2012

Sorry Ben, looks like I created a false conflict swapping between machines. I have tried to correct in https://github.com/westboost/node/commit/74b60fab8fbc99f34d460b620ff193931f23ca01. If this is no good let's close this and I will clean up my fork and re-submit with some other test fixes I have.

@bnoordhuis
Copy link
Member

There's still a lot of noise. If you can either rebase or submit again, that'd be great.

@Nodejs-Jenkins
Copy link

Can one of the admins verify this patch?

@chrisdickinson
Copy link

It looks like the corresponding issue has since been closed. Closing.

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

Successfully merging this pull request may close these issues.

None yet

4 participants