about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-29 05:27:18 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-29 17:48:11 -0700
commit4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd (patch)
treee497aa94d7559f2825b97b19fdee076ab79b635c /test
parent1e10654f81e74c4d11ab538b16dcc1b7bd36cb7f (diff)
downloadunicorn-4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd.tar.gz
The default is false because some applications were not
written to handle partial reads (even though IO#read allows
it, not just IO#readpartial).
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_configurator.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/test_configurator.rb b/test/unit/test_configurator.rb
index 98f2db6..f836647 100644
--- a/test/unit/test_configurator.rb
+++ b/test/unit/test_configurator.rb
@@ -1,6 +1,6 @@
 require 'test/unit'
 require 'tempfile'
-require 'unicorn/configurator'
+require 'unicorn'
 
 class TestConfigurator < Test::Unit::TestCase
 
@@ -53,6 +53,7 @@ class TestConfigurator < Test::Unit::TestCase
     cfg = Unicorn::Configurator.new(:use_defaults => true)
     assert_nothing_raised { cfg.commit!(self) }
     Unicorn::Configurator::DEFAULTS.each do |key,value|
+      next if key == :stream_input
       assert_equal value, instance_variable_get("@#{key.to_s}")
     end
   end
@@ -64,6 +65,7 @@ class TestConfigurator < Test::Unit::TestCase
     @logger = nil
     Unicorn::Configurator::DEFAULTS.each do |key,value|
       next if skip.include?(key)
+      next if key == :stream_input
       assert_equal value, instance_variable_get("@#{key.to_s}")
     end
     assert_nil @logger