summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_server_command.rb
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-28 15:43:27 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-28 15:43:27 +0000
commit1dcd94df24b47983c3c723c7196463db326f4156 (patch)
tree38bf23ce6f6f7653f9991ccc4ed4b2b11a6922be /test/rubygems/test_gem_commands_server_command.rb
parent2819e3b841e662bac8b265ee25dcb114b7923e34 (diff)
* 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
Diffstat (limited to 'test/rubygems/test_gem_commands_server_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_server_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_server_command.rb b/test/rubygems/test_gem_commands_server_command.rb
index db27a4c..d0782f9 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]