npm test > portfinder@1.0.6 test /Users/trom/Documents/desktop_space/Dropbox/dev/dev-oss/node-portfinder > vows test/*-test.js --spec (node:23360) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. default hosts are %o [ '::1', '127.0.0.1', 'fe80::1', 'fe80::a299:9bff:fe17:766d', '10.0.1.22', 'fe80::cc2:2bff:fe37:1b9e' ] ♢ portfinder in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): OK ::1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): OK 127.0.0.1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is fe80::1 entered testPort(): trying fe80::1 port 32768 done w/ testPort(): failed fe80::1 w/ port 32768 with error EADDRNOTAVAIL in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::1:32768 at Object.exports._errnoException (util.js:1008:11) at exports._exceptionWithHostPort (util.js:1031:20) at Server._listen2 (net.js:1240:19) at listen (net.js:1289:10) at net.js:1399:9 at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:577:11) at run (bootstrap_node.js:352:7) at startup (bootstrap_node.js:144:9) code: 'EADDRNOTAVAIL', errno: 'EADDRNOTAVAIL', syscall: 'listen', address: 'fe80::1', port: 32768 } in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): OK ::1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): OK 127.0.0.1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is fe80::a299:9bff:fe17:766d entered testPort(): trying fe80::a299:9bff:fe17:766d port 32768 done w/ testPort(): failed fe80::a299:9bff:fe17:766d w/ port 32768 with error EADDRNOTAVAIL in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::a299:9bff:fe17:766d:32768 at Object.exports._errnoException (util.js:1008:11) at exports._exceptionWithHostPort (util.js:1031:20) at Server._listen2 (net.js:1240:19) at listen (net.js:1289:10) at net.js:1399:9 at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:577:11) at run (bootstrap_node.js:352:7) at startup (bootstrap_node.js:144:9) code: 'EADDRNOTAVAIL', errno: 'EADDRNOTAVAIL', syscall: 'listen', address: 'fe80::a299:9bff:fe17:766d', port: 32768 } in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): OK ::1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): OK 127.0.0.1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): OK 10.0.1.22 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is fe80::cc2:2bff:fe37:1b9e entered testPort(): trying fe80::cc2:2bff:fe37:1b9e port 32768 done w/ testPort(): failed fe80::cc2:2bff:fe37:1b9e w/ port 32768 with error EADDRNOTAVAIL in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::cc2:2bff:fe37:1b9e:32768 at Object.exports._errnoException (util.js:1008:11) at exports._exceptionWithHostPort (util.js:1031:20) at Server._listen2 (net.js:1240:19) at listen (net.js:1289:10) at net.js:1399:9 at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:98:9) at Module.runMain (module.js:577:11) at run (bootstrap_node.js:352:7) at startup (bootstrap_node.js:144:9) code: 'EADDRNOTAVAIL', errno: 'EADDRNOTAVAIL', syscall: 'listen', address: 'fe80::cc2:2bff:fe37:1b9e', port: 32768 } in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): OK ::1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): OK 127.0.0.1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): OK 10.0.1.22 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() result callback: openPorts is [ 32768, 32768, 32768 ] When using portfinder module ensure that infinite loop is not triggered ✓ should not get a timeout ♢ portfinder in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): failed ::1 w/ port 32768 with error EADDRINUSE entered testPort(): trying ::1 port 32769 done w/ testPort(): failed ::1 w/ port 32769 with error EADDRINUSE entered testPort(): trying ::1 port 32770 done w/ testPort(): failed ::1 w/ port 32770 with error EADDRINUSE entered testPort(): trying ::1 port 32771 done w/ testPort(): failed ::1 w/ port 32771 with error EADDRINUSE entered testPort(): trying ::1 port 32772 done w/ testPort(): failed ::1 w/ port 32772 with error EADDRINUSE entered testPort(): trying ::1 port 32773 done w/ testPort(): OK ::1 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32769 done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32770 done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32771 done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32772 done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32773 done w/ testPort(): OK 127.0.0.1 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): failed 10.0.1.22 w/ port 32768 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32769 done w/ testPort(): failed 10.0.1.22 w/ port 32769 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32770 done w/ testPort(): failed 10.0.1.22 w/ port 32770 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32771 done w/ testPort(): failed 10.0.1.22 w/ port 32771 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32772 done w/ testPort(): failed 10.0.1.22 w/ port 32772 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32773 done w/ testPort(): OK 10.0.1.22 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() result callback: openPorts is [ 32773, 32773, 32773 ] in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32774 done w/ testPort(): OK ::1 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32774 done w/ testPort(): OK 127.0.0.1 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32774 done w/ testPort(): OK 10.0.1.22 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() result callback: openPorts is [ 32774, 32774, 32774 ] in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32775 done w/ testPort(): OK ::1 port 32775 in eachSeries() iteration callback testPort() callback with a success for port 32775 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32775 done w/ testPort(): OK 127.0.0.1 port 32775 in eachSeries() iteration callback testPort() callback with a success for port 32775 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32775 done w/ testPort(): OK 10.0.1.22 port 32775 in eachSeries() iteration callback testPort() callback with a success for port 32775 in eachSeries() result callback: openPorts is [ 32775, 32775, 32775 ] When using portfinder module with 5 existing servers the getPorts() method with an argument of 3 ✓ should respond with the first three available ports (32773, 32774, 32775) in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): OK ::1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): OK 127.0.0.1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): OK 10.0.1.22 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() result callback: openPorts is [ 32768, 32768, 32768 ] in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32769 done w/ testPort(): OK ::1 port 32769 in eachSeries() iteration callback testPort() callback with a success for port 32769 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32769 done w/ testPort(): OK 127.0.0.1 port 32769 in eachSeries() iteration callback testPort() callback with a success for port 32769 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32769 done w/ testPort(): OK 10.0.1.22 port 32769 in eachSeries() iteration callback testPort() callback with a success for port 32769 in eachSeries() result callback: openPorts is [ 32769, 32769, 32769 ] in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32770 done w/ testPort(): OK ::1 port 32770 in eachSeries() iteration callback testPort() callback with a success for port 32770 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32770 done w/ testPort(): OK 127.0.0.1 port 32770 in eachSeries() iteration callback testPort() callback with a success for port 32770 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32770 done w/ testPort(): OK 10.0.1.22 port 32770 in eachSeries() iteration callback testPort() callback with a success for port 32770 in eachSeries() result callback: openPorts is [ 32770, 32770, 32770 ] When using portfinder module with no existing servers the getPorts() method with an argument of 3 ✓ should respond with the first three available ports (32768, 32769, 32770) ♢ portfinder When using portfinder module with 5 existing servers the getPort() method ✓ should respond with the first free socket (test5.sock) When using portfinder module with no existing servers the getSocket() method with a directory that exists ✓ should respond with the first free socket (exists.sock) When using portfinder module with no existing servers the getSocket() method with a directory that doesnt exist ✓ should respond with the first free socket (test.sock) When the tests are over ✓ necessary cleanup should have taken place ♢ portfinder in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): failed ::1 w/ port 32768 with error EADDRINUSE entered testPort(): trying ::1 port 32769 done w/ testPort(): failed ::1 w/ port 32768 with error EADDRINUSE entered testPort(): trying ::1 port 32769 done w/ testPort(): failed ::1 w/ port 32769 with error EADDRINUSE entered testPort(): trying ::1 port 32770 done w/ testPort(): failed ::1 w/ port 32769 with error EADDRINUSE entered testPort(): trying ::1 port 32770 done w/ testPort(): failed ::1 w/ port 32770 with error EADDRINUSE entered testPort(): trying ::1 port 32771 done w/ testPort(): failed ::1 w/ port 32770 with error EADDRINUSE entered testPort(): trying ::1 port 32771 done w/ testPort(): failed ::1 w/ port 32771 with error EADDRINUSE entered testPort(): trying ::1 port 32772 done w/ testPort(): failed ::1 w/ port 32771 with error EADDRINUSE entered testPort(): trying ::1 port 32772 done w/ testPort(): failed ::1 w/ port 32772 with error EADDRINUSE entered testPort(): trying ::1 port 32773 done w/ testPort(): failed ::1 w/ port 32772 with error EADDRINUSE entered testPort(): trying ::1 port 32773 done w/ testPort(): OK ::1 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): failed ::1 w/ port 32773 with error EADDRINUSE entered testPort(): trying ::1 port 32774 done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32769 done w/ testPort(): OK ::1 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32770 done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32769 done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32771 done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32770 done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32772 done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32771 done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32773 done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32772 done w/ testPort(): OK 127.0.0.1 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE entered testPort(): trying 127.0.0.1 port 32773 done w/ testPort(): failed 10.0.1.22 w/ port 32768 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32769 done w/ testPort(): OK 127.0.0.1 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): failed 10.0.1.22 w/ port 32769 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32770 done w/ testPort(): failed 10.0.1.22 w/ port 32768 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32769 done w/ testPort(): failed 10.0.1.22 w/ port 32770 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32771 done w/ testPort(): failed 10.0.1.22 w/ port 32769 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32770 done w/ testPort(): failed 10.0.1.22 w/ port 32771 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32772 done w/ testPort(): failed 10.0.1.22 w/ port 32770 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32771 done w/ testPort(): failed 10.0.1.22 w/ port 32772 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32773 done w/ testPort(): failed 10.0.1.22 w/ port 32771 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32772 done w/ testPort(): OK 10.0.1.22 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() result callback: openPorts is [ 32773, 32773, 32773 ] When using portfinder module with 5 existing servers the getPort() method ✓ should respond with the first free port (32773) done w/ testPort(): failed 10.0.1.22 w/ port 32772 with error EADDRINUSE entered testPort(): trying 10.0.1.22 port 32773 done w/ testPort(): OK 10.0.1.22 port 32773 in eachSeries() iteration callback testPort() callback with a success for port 32773 in eachSeries() result callback: openPorts is [ 32773, 32773, 32774 ] in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32774 done w/ testPort(): OK ::1 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32774 done w/ testPort(): OK 127.0.0.1 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32774 done w/ testPort(): OK 10.0.1.22 port 32774 in eachSeries() iteration callback testPort() callback with a success for port 32774 in eachSeries() result callback: openPorts is [ 32774, 32774, 32774 ] When using portfinder module with 5 existing servers the getPort() method with user passed duplicate host ✓ should respond with the first free port (32774) in eachSeries() iteration callback: host is ::1 entered testPort(): trying ::1 port 32768 done w/ testPort(): OK ::1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 127.0.0.1 entered testPort(): trying 127.0.0.1 port 32768 done w/ testPort(): OK 127.0.0.1 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() iteration callback: host is 10.0.1.22 entered testPort(): trying 10.0.1.22 port 32768 done w/ testPort(): OK 10.0.1.22 port 32768 in eachSeries() iteration callback testPort() callback with a success for port 32768 in eachSeries() result callback: openPorts is [ 32768, 32768, 32768 ] When using portfinder module with no existing servers the getPort() method ✓ should respond with the first free port (32768) ✓ OK » 10 honored (0.301s)