test: find IPv6 address from localhost names#7806
test: find IPv6 address from localhost names#7806thefourtheye wants to merge 2 commits intonodejs:masterfrom
Conversation
Try all the possible hostnames listed in `common.localIPv6Hosts` to get an IPv6 address. If none of them give a valid address, skip the tests.
|
@bnoordhuis I found a way to fix that. Testing it in my local VMs. I'll update shortly. |
8abd66b to
1dccdcd
Compare
|
The current version looks like a partial win. https://ci.nodejs.org/job/node-test-pull-request/3351/. Only two failures till now. |
d8a7243 to
1dccdcd
Compare
|
Okay. All green now (Except Fedora 24, which keeps building and testing again and again). https://ci.nodejs.org/job/node-test-pull-request/3352/ |
|
I have to say that the changes to test/common.js don't look very appealing but I'll defer to @nodejs/testing. |
|
@bnoordhuis Any suggestions to make it better? |
|
@bnoordhuis Will this be better? Edit: I probably can move the |
I feel the same, but would be curious how more people on @nodejs/testing felt. This function seems to be only needed in two tests so it's not clear to me that |
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
test
Description of change
Try all the possible hostnames listed in
common.localIPv6Hoststo getan IPv6 address. If none of them give a valid address, skip the tests.
cc @nodejs/testing