about summary refs log tree commit homepage
path: root/test/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/http.rb')
-rw-r--r--test/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http.rb b/test/http.rb
index c847046..e23bddf 100644
--- a/test/http.rb
+++ b/test/http.rb
@@ -271,7 +271,7 @@ class TestHTTP < Test::Unit::TestCase
     # wake up the blocked threads
     writer = Thread.new do
       nr.times do |i|
-        File.open(fifo % i, "w") { |fp| fp.write(i.to_s) }
+        File.open(fifo % i, "w").close
       end
     end