mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_gem_remote_fetcher.rb: fix leaked FDs
* test/rubygems/test_gem_remote_fetcher.rb (start_server): shutdown remote servers. * test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ebed2ef335
commit
895c1ce477
1 changed files with 4 additions and 0 deletions
|
@ -771,6 +771,8 @@ gems:
|
|||
rescue Exception => ex
|
||||
abort ex.message
|
||||
puts "ERROR during server thread: #{ex.message}"
|
||||
ensure
|
||||
server.shutdown
|
||||
end
|
||||
end
|
||||
while server.status != :Running
|
||||
|
@ -822,6 +824,8 @@ gems:
|
|||
s.start
|
||||
rescue Exception => ex
|
||||
abort "ERROR during server thread: #{ex.message}"
|
||||
ensure
|
||||
s.shutdown
|
||||
end
|
||||
end
|
||||
th[:server] = s
|
||||
|
|
Loading…
Reference in a new issue