[前][次][番号順一覧][スレッド一覧]

ruby-changes:57676

From: Masaki <ko1@a...>
Date: Mon, 9 Sep 2019 18:39:23 +0900 (JST)
Subject: [ruby-changes:57676] 0fb2457d79 (master): Fix service name for test

https://git.ruby-lang.org/ruby.git/commit/?id=0fb2457d79

From 0fb2457d794ee49701873584c80a6e1cace94b83 Mon Sep 17 00:00:00 2001
From: Masaki Matsushita <glass.saga@g...>
Date: Mon, 9 Sep 2019 18:35:19 +0900
Subject: Fix service name for test

change service name to fix failed test on Solaris

diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index 9f50848..fcb71da 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -689,7 +689,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_addrinfo.rb#L689
     end
 
     def test_addrinfo_timeout
-      ai = Addrinfo.getaddrinfo("localhost", "http", Socket::PF_INET, Socket::SOCK_STREAM, timeout: 1).fetch(0)
+      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)
     end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]