about summary refs log tree commit homepage
path: root/test/unit/test_ws.rb
diff options
context:
space:
mode:
authorIan Ownbey <ian@inspir.es>2009-01-31 14:18:08 -0800
committerIan Ownbey <ian@inspir.es>2009-01-31 14:18:08 -0800
commitfa82e8e3fb52e0107163e57a705cc652f276e1ab (patch)
tree8bf4e995294379699cefec179a77f711d079ad2b /test/unit/test_ws.rb
parentdda58fa2d58c4ab2bda0a9580841e3c4e09bb30c (diff)
parentcb3b9862a5fef4f3fd197e0319bbea0de562f9da (diff)
downloadunicorn-fa82e8e3fb52e0107163e57a705cc652f276e1ab.tar.gz
* 'master' of git@github.com:fauna/mongrel:
  Merge pivotal code.
  Moving toward using a logger instead of dumping to STDERR all over the place.
  TODO been did.
  No commands.
Diffstat (limited to 'test/unit/test_ws.rb')
-rw-r--r--test/unit/test_ws.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit/test_ws.rb b/test/unit/test_ws.rb
index 7508c7f..2510c3a 100644
--- a/test/unit/test_ws.rb
+++ b/test/unit/test_ws.rb
@@ -27,9 +27,8 @@ class WebServerTest < Test::Unit::TestCase
     @tester = TestHandler.new
     @app = Rack::URLMap.new('/test' => @tester)
     redirect_test_io do
-      # We set num_processors=1 so that we can test the reaping code
-      @server = HttpServer.new("127.0.0.1", @port, @app, :num_processors => 1)
-      @server.start!
+      # We set max_queued_threads=1 so that we can test the reaping code
+      @server = HttpServer.new("127.0.0.1", @port, @app, :max_queued_threads => 1)
     end
   end
 
@@ -90,7 +89,7 @@ class WebServerTest < Test::Unit::TestCase
     end
   end
 
-  def test_num_processors_overload
+  def test_max_queued_threads_overload
     redirect_test_io do
       assert_raises Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNABORTED, Errno::EINVAL, IOError do
         tests = [