Skip to content

Commit

Permalink
Only skip spec Rbuv::Tcp#bind on linux, and show error if it passes
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdandrea authored and qqshfox committed Jul 13, 2014
1 parent 744ce0a commit e353dcf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/tcp_spec.rb
Expand Up @@ -20,10 +20,13 @@ def port_alive?(port, host='127.0.0.1')
it { is_expected.to be_a_kind_of Rbuv::Stream }

it "#bind" do
if RUBY_PLATFORM.downcase.include?("linux")
pending "this spec does't pass on linux machines, see #1 on github"
end

expect(port_in_use?(60000)).to be false

Rbuv.run do
skip "this spec does't pass on linux machines, see #1 on github"
begin
tcp = Rbuv::Tcp.new
tcp.bind '127.0.0.1', 60000
Expand Down

0 comments on commit e353dcf

Please sign in to comment.