зеркало из https://github.com/github/ruby.git
Mac OS raises EADDRNOTAVAIL but not ECONNREFUSED
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4cfbc59dc3
Коммит
9bb63a50f5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче