diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-16 13:51:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-16 13:51:17 +0000 |
commit | 29d9c07c73561aa12fe37b271f2327a0bb0a5b43 (patch) | |
tree | ec696ec5ea3dbd026afd14306005cda1fa3da6cf /spec | |
parent | c4c209bcf5528f5d0e1a6c72f4e1b2b348293cbc (diff) | |
download | ruby-29d9c07c73561aa12fe37b271f2327a0bb0a5b43.tar.gz |
Mac OS raises EADDRNOTAVAIL but not ECONNREFUSED
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r-- | spec/rubyspec/library/socket/tcpsocket/shared/new.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/rubyspec/library/socket/tcpsocket/shared/new.rb b/spec/rubyspec/library/socket/tcpsocket/shared/new.rb index fed399d80a..f745a69f67 100644 --- a/spec/rubyspec/library/socket/tcpsocket/shared/new.rb +++ b/spec/rubyspec/library/socket/tcpsocket/shared/new.rb @@ -9,7 +9,7 @@ describe :tcpsocket_new, shared: true do 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 |