about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_buffer_tmpdir.rb2
-rw-r--r--test/test_extras_exec_cgi.rb3
-rw-r--r--test/test_ssl.rb2
3 files changed, 3 insertions, 4 deletions
diff --git a/test/test_buffer_tmpdir.rb b/test/test_buffer_tmpdir.rb
index bac8017..39029ed 100644
--- a/test/test_buffer_tmpdir.rb
+++ b/test/test_buffer_tmpdir.rb
@@ -67,7 +67,6 @@ class TestBufferTmpdir < Testcase
       event = @ino.take
       assert_equal [:DELETE], event.events
       assert_equal name, event.name
-      refute File.exist?("#@tmpdir/#{name}")
     end
   ensure
     c.close if c
@@ -101,7 +100,6 @@ class TestBufferTmpdir < Testcase
       event = ino.take
       assert_equal [:DELETE], event.events
       assert_equal name, event.name
-      refute File.exist?("#{tmpdir}/#{name}")
     end
   ensure
     c.close if c
diff --git a/test/test_extras_exec_cgi.rb b/test/test_extras_exec_cgi.rb
index 426409d..4fa928d 100644
--- a/test/test_extras_exec_cgi.rb
+++ b/test/test_extras_exec_cgi.rb
@@ -136,7 +136,7 @@ class TestExtrasExecCGI < Testcase
       Yahns::HttpClient.__send__(:include, TrywriteBlocked)
       require './extras/exec_cgi'
       cfg.instance_eval do
-        stack = Rack::ContentLength.new(Rack::Chunked.new(ExecCgi.new(RUNME)))
+        stack = Rack::Chunked.new(ExecCgi.new(RUNME))
         app(:rack, stack) { listen "#{host}:#{port}" }
         stderr_path err.path
         worker_processes 1
@@ -170,6 +170,7 @@ class TestExtrasExecCGI < Testcase
         assert_match %r{\A\d+\n\z}, body
         exec_pid = body.to_i
         poke_until_dead exec_pid
+        # lack of Content-Length should trigger EOF here:
         assert_raises(EOFError) { c.readpartial(666) }
       else
         raise "BUG in test, bad rtype"
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index 7909094..9442ec8 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -178,7 +178,7 @@ AQjjxMXhwULlmuR/K+WwlaZPiLIBYalLAZQ7ZbOPeVkJ8ePao0eLAgEC
                 s.any_old_invalid_test_method
                 s.puts "FAIL"
               rescue => e
-                s.puts "#{e.class}: #{e.message}"
+                s.puts("#{e.class}: #{e.message}".split("\n")[0])
               end
             when nil
               s.close