mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/webrick/utils.rb: use Proc#yield instead of Proc#call.
[ruby-dev:28914] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a15f88901
commit
ab0a7bd2fa
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module TestWEBrick
|
||||||
begin
|
begin
|
||||||
thread = Thread.start{ server.start }
|
thread = Thread.start{ server.start }
|
||||||
addr = server.listeners[0].addr
|
addr = server.listeners[0].addr
|
||||||
block.call([server, addr[3], addr[1]])
|
block.yield([server, addr[3], addr[1]])
|
||||||
ensure
|
ensure
|
||||||
server.stop
|
server.stop
|
||||||
thread.join
|
thread.join
|
||||||
|
|
Loading…
Reference in a new issue