From e353dcf222f53d73c288d3c971ca1ee2c83603b5 Mon Sep 17 00:00:00 2001 From: Arthur D'Andrea Date: Fri, 4 Jul 2014 15:10:20 -0300 Subject: [PATCH] Only skip spec Rbuv::Tcp#bind on linux, and show error if it passes --- spec/tcp_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/tcp_spec.rb b/spec/tcp_spec.rb index f28448c..0a3ab47 100644 --- a/spec/tcp_spec.rb +++ b/spec/tcp_spec.rb @@ -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