about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEvan Weaver <eweaver@twitter.com>2009-01-31 15:13:20 -0800
committerEvan Weaver <eweaver@twitter.com>2009-01-31 15:13:20 -0800
commit985b414fc4a52a715c6b96d4352df2029d667d95 (patch)
tree991d5ed7183a7bd8b66ac898d978803dbc67224b
parent6089bda52edd16ce343e3e29718418f2852e76af (diff)
downloadunicorn-985b414fc4a52a715c6b96d4352df2029d667d95.tar.gz
-rw-r--r--test/unit/test_threading.rb15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/unit/test_threading.rb b/test/unit/test_threading.rb
index cfd4745..21f6c42 100644
--- a/test/unit/test_threading.rb
+++ b/test/unit/test_threading.rb
@@ -35,22 +35,15 @@ class ThreadingTest < Test::Unit::TestCase
     @port = process_based_port
     @app = Rack::URLMap.new('/test' => FakeHandler.new)
     @max_concurrent_threads = 4
-    redirect_test_io do
-      @server = HttpServer.new("127.0.0.1", @port, @app, :max_concurrent_threads => @max_concurrent_threads)
-    end
-    
-    redirect_test_io do
-      @server.start!
-    end
+    redirect_test_io { @server = HttpServer.new("127.0.0.1", @port, @app, :max_concurrent_threads => @max_concurrent_threads) }    
+    redirect_test_io { @server.start! }
   end
 
   def teardown
-    redirect_test_io do
-      @server.stop(true)
-    end
+    redirect_test_io { @server.stop(true) }
   end
 
-  def test_server_respects_max_current_threads_option
+  def test_server_respects_max_concurrent_threads_option
     threads = []
     (@max_concurrent_threads * 3).times do
       threads << Thread.new do