From 1dcd94df24b47983c3c723c7196463db326f4156 Mon Sep 17 00:00:00 2001 From: ngoto Date: Wed, 28 Oct 2015 15:43:27 +0000 Subject: * test/rubygems/test_gem_commands_server_command.rb (test_handle_options_port): change port from http to discard. Solaris does not include "http 80/tcp" in its default /etc/inet/services. AFAIK, discard (9/tcp) is older than http and it is expected that all OS can resolve the service name. [Bug #10004] [ruby-core:63518] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_server_command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/rubygems') diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb index db27a4c932..d0782f9a94 100644 --- a/test/rubygems/test_gem_commands_server_command.rb +++ b/test/rubygems/test_gem_commands_server_command.rb @@ -37,8 +37,8 @@ class TestGemCommandsServerCommand < Gem::TestCase @cmd.send :handle_options, %w[-p 65535] assert_equal 65535, @cmd.options[:port] - @cmd.send :handle_options, %w[-p http] - assert_equal 80, @cmd.options[:port] + @cmd.send :handle_options, %w[-p discard] + assert_equal 9, @cmd.options[:port] e = assert_raises OptionParser::InvalidArgument do @cmd.send :handle_options, %w[-p nonexistent] -- cgit v1.2.3