ruby-changes:57677
From: Masaki <ko1@a...>
Date: Mon, 9 Sep 2019 18:45:11 +0900 (JST)
Subject: [ruby-changes:57677] 8c09de38c5 (master): Fix expected ip_port
https://git.ruby-lang.org/ruby.git/commit/?id=8c09de38c5 From 8c09de38c5f2dab324bcb30ab4a8db9bd55357b2 Mon Sep 17 00:00:00 2001 From: Masaki Matsushita <glass.saga@g...> Date: Mon, 9 Sep 2019 18:44:42 +0900 Subject: Fix expected ip_port diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index fcb71da..672ffe5 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -691,7 +691,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_addrinfo.rb#L691 def test_addrinfo_timeout ai = Addrinfo.getaddrinfo("localhost", nil, Socket::PF_INET, Socket::SOCK_STREAM, timeout: 1).fetch(0) assert_equal(6, ai.protocol) - assert_equal(80, ai.ip_port) + assert_equal(0, ai.ip_port) end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/