Skip to content

Instantly share code, notes, and snippets.

@eriktrom
Created March 16, 2016 19:11
Show Gist options
  • Save eriktrom/47074112bc79c804c8f2 to your computer and use it in GitHub Desktop.
Save eriktrom/47074112bc79c804c8f2 to your computer and use it in GitHub Desktop.
port finder log test 2 (final)
♢ 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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32768
done w/ testPort(): OK 0.0.0.0 port 32768
in eachSeries() iteration callback testPort() callback with a success for port 32768
in eachSeries() result callback: err is null
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32768
done w/ testPort(): failed 0.0.0.0 w/ port 32768 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32769
done w/ testPort(): failed 0.0.0.0 w/ port 32769 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32770
done w/ testPort(): failed 0.0.0.0 w/ port 32770 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32771
done w/ testPort(): failed 0.0.0.0 w/ port 32771 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32772
done w/ testPort(): failed 0.0.0.0 w/ port 32772 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32773
done w/ testPort(): OK 0.0.0.0 port 32773
in eachSeries() iteration callback testPort() callback with a success for port 32773
in eachSeries() result callback: err is null
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32774
done w/ testPort(): OK 0.0.0.0 port 32774
in eachSeries() iteration callback testPort() callback with a success for port 32774
in eachSeries() result callback: err is null
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32775
done w/ testPort(): OK 0.0.0.0 port 32775
in eachSeries() iteration callback testPort() callback with a success for port 32775
in eachSeries() result callback: err is null
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32768
done w/ testPort(): OK 0.0.0.0 port 32768
in eachSeries() iteration callback testPort() callback with a success for port 32768
in eachSeries() result callback: err is null
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32769
done w/ testPort(): OK 0.0.0.0 port 32769
in eachSeries() iteration callback testPort() callback with a success for port 32769
in eachSeries() result callback: err is null
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32770
done w/ testPort(): OK 0.0.0.0 port 32770
in eachSeries() iteration callback testPort() callback with a success for port 32770
in eachSeries() result callback: err is null
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
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32768
done w/ testPort(): failed 0.0.0.0 w/ port 32768 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32769
done w/ testPort(): failed 0.0.0.0 w/ port 32769 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32770
done w/ testPort(): failed 0.0.0.0 w/ port 32770 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32771
done w/ testPort(): failed 0.0.0.0 w/ port 32771 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32772
done w/ testPort(): failed 0.0.0.0 w/ port 32772 with error EADDRINUSE
entered testPort(): trying 0.0.0.0 port 32773
done w/ testPort(): OK 0.0.0.0 port 32773
in eachSeries() iteration callback testPort() callback with a success for port 32773
in eachSeries() result callback: err is null
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)
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 0.0.0.0
entered testPort(): trying 0.0.0.0 port 32768
done w/ testPort(): OK 0.0.0.0 port 32768
in eachSeries() iteration callback testPort() callback with a success for port 32768
in eachSeries() result callback: err is null
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment