ruby-changes:46638
From: nobu <ko1@a...>
Date: Tue, 16 May 2017 22:51:21 +0900 (JST)
Subject: [ruby-changes:46638] nobu:r58753 (trunk): Mac OS raises EADDRNOTAVAIL but not ECONNREFUSED
nobu 2017-05-16 22:51:17 +0900 (Tue, 16 May 2017) New Revision: 58753 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58753 Log: Mac OS raises EADDRNOTAVAIL but not ECONNREFUSED Modified files: trunk/spec/rubyspec/library/socket/tcpsocket/shared/new.rb Index: spec/rubyspec/library/socket/tcpsocket/shared/new.rb =================================================================== --- spec/rubyspec/library/socket/tcpsocket/shared/new.rb (revision 58752) +++ spec/rubyspec/library/socket/tcpsocket/shared/new.rb (revision 58753) @@ -9,7 +9,7 @@ describe :tcpsocket_new, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/library/socket/tcpsocket/shared/new.rb#L9 it "refuses the connection when there is no server to connect to" do lambda do TCPSocket.send(@method, SocketSpecs.hostname, SocketSpecs.reserved_unused_port) - end.should raise_error(Errno::ECONNREFUSED) + end.should raise_error([Errno::ECONNREFUSED, Errno::EADDRNOTAVAIL]) end describe "with a running server" do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/