Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Last active August 29, 2015 14:15
Show Gist options
  • Save jordansissel/e8176bbdb07e0561baa9 to your computer and use it in GitHub Desktop.
Save jordansissel/e8176bbdb07e0561baa9 to your computer and use it in GitHub Desktop.
% rspec examples/socket_analyze_spec.rb
F
Failures:
[4/1946]
1) TCPServer on a random port should bind successfully
Failure/Error: raise Analysis.new(results)
32.31% tests successful of 2315 tests
Failure analysis:
48.64% -> [1126] SocketError
Sample exception:
getaddrinfo: nodename nor servname provided, or not known
Samples causing SocketError:
{:port=>-91236}
{:port=>-9175}
{:port=>-60940}
{:port=>-56461}
{:port=>-68487}
17.58% -> [407] RSpec::Expectations::ExpectationNotMetError
Sample exception:
expected: == 94623
got: 29087
Samples causing RSpec::Expectations::ExpectationNotMetError:
{:port=>82899}
{:port=>66928}
{:port=>74712}
{:port=>86509}
{:port=>76775}
0.95% -> [22] Errno::EACCES
Sample exception:
Permission denied - bind(2) for 127.0.0.1:349
Samples causing Errno::EACCES:
{:port=>66469}
{:port=>65617}
{:port=>256}
{:port=>65903}
{:port=>66385}
0.52% -> [12] Errno::EADDRINUSE
Sample exception:
Address already in use - bind(2) for 127.0.0.1:8026
Samples causing Errno::EADDRINUSE:
{:port=>99841}
{:port=>18010}
{:port=>42941}
{:port=>69535}
{:port=>42604}
# ./lib/rspec/stress_it.rb:78:in `block in analyze_it'
Finished in 0.06728 seconds (files took 0.10452 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./examples/socket_analyze_spec.rb:14 # TCPServer on a random port should bind successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment