Skip to content

Commit

Permalink
made the server runnable again
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapotek committed Apr 19, 2012
1 parent c0be4d3 commit 241bbcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarks/server.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ def self.run


def with_server(&block) def with_server(&block)
pid = Process.fork do pid = Process.fork do
# Benchmark::Server.run Benchmark::Server.run
end end
loop do loop do
sleep(1) sleep(1)
begin begin
# Excon.get('http://localhost:9292/api/foo') #Excon.get('http://localhost:9292/api/foo')
break break
rescue rescue
end end
end end
yield yield
ensure ensure
Process.kill(9, pid) Process.kill(9, pid)
end end

0 comments on commit 241bbcc

Please sign in to comment.