spec/webmachine/adapters/reel_spec.rb in webmachine-1.4.0 vs spec/webmachine/adapters/reel_spec.rb in webmachine-1.5.0
- old
+ new
@@ -54,10 +54,10 @@
end
def reel_server(adptr = adapter)
thread = Thread.new { adptr.run }
begin
- timeout(5) do
+ Timeout.timeout(5) do
begin
sock = TCPSocket.new(adptr.application.configuration.ip, adptr.application.configuration.port)
begin
yield(sock)
ensure