mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Use Timeout.timeout instead of Object.timeout
This commit is contained in:
parent
d43605e3de
commit
64d4dabca7
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class TestPersistent < Test::Unit::TestCase
|
|||
|
||||
def lines(count, s=@client)
|
||||
str = ""
|
||||
timeout(5) do
|
||||
Timeout.timeout(5) do
|
||||
count.times { str << s.gets }
|
||||
end
|
||||
str
|
||||
|
|
Loading…
Reference in a new issue