about summary refs log tree commit homepage
path: root/test/test_client_expire.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_client_expire.rb')
-rw-r--r--test/test_client_expire.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_client_expire.rb b/test/test_client_expire.rb
index 525c2e8..269d487 100644
--- a/test/test_client_expire.rb
+++ b/test/test_client_expire.rb
@@ -66,12 +66,14 @@ class TestClientExpire < Testcase
     abe = tmpfile(%w(abe .err))
     ab_res = `ab -c #{nr} -n 10000 -k http://#{host}:#{port}/ 2>#{abe.path}`
     assert $?.success?, $?.inspect << abe.read
+    abe.close!
     assert_match(/Complete requests:\s+10000\n/, ab_res)
 
     [ f, s ].each do |io|
       assert_raises(Errno::EPIPE,Errno::ECONNRESET) do
         req.each_byte { |b| io.write(b.chr) }
       end
+      io.close
     end
   rescue => e
     Yahns::Log.exception(Logger.new($stderr), "test", e)