lib/saorin/test.rb in saorin-0.3.0 vs lib/saorin/test.rb in saorin-0.3.1

- old
+ new

@@ -47,22 +47,23 @@ attr_reader :server attr_reader :client def create_test_server(options = {}) @pid = Process.fork do - @server = Saorin::Server.start(Handler.new, { + @server = Saorin::Server.new(Handler.new, { :host => HOST, :port => PORT, :Logger => Logger.new('/dev/null'), :AccessLog => [], }.merge(options)) + @server.start end - sleep 3 + sleep 2 end def shutdown_test_server Process.kill :INT, @pid - sleep 3 + sleep 2 end def create_test_client(options = {}) @client = Saorin::Client.new({ :url => "http://127.0.0.1:#{PORT}"