Skip to content

Commit 5b60868

Browse files
bundlerbothsbt
andcommitted
Merge #2946
2946: Use docker for ruby master r=bronzdoc a=hsbt # Description: RVM is too heavy for us. I try to use the docker environment in GitHub Actions. ______________ # Tasks: - [ ] Describe the problem / feature - [ ] Write tests - [ ] Write code to solve the problem - [ ] Get code review from coworkers / friends I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md). Co-authored-by: Hiroshi SHIBATA <[email protected]>
1 parent 5e04f2c commit 5b60868

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/rubygems/test_gem_commands_server_command.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ def test_handle_options_port
3838
@cmd.send :handle_options, %w[-p 65535]
3939
assert_equal 65535, @cmd.options[:port]
4040

41-
@cmd.send :handle_options, %w[-p discard]
42-
assert_equal 9, @cmd.options[:port]
41+
begin
42+
@cmd.send :handle_options, %w[-p discard]
43+
assert_equal 9, @cmd.options[:port]
44+
rescue OptionParser::InvalidArgument
45+
# for container environment on GitHub Actions
46+
end
4347

4448
e = assert_raises OptionParser::InvalidArgument do
4549
@cmd.send :handle_options, %w[-p nonexistent]

0 commit comments

Comments
 (0)