about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-09-03 07:10:04 +0000
committerEric Wong <e@80x24.org>2014-09-03 07:10:04 +0000
commit29bc0766942a92549774d0439d1a6362c53bc26c (patch)
tree86195ef362d3ffa7cfd2698380979f302a8ec90c
parent9be3f68b9d8d86379339dc0e6852612061880e38 (diff)
downloadcmogstored-29bc0766942a92549774d0439d1a6362c53bc26c.tar.gz
This is noticeable in the trunk version of ruby since r47288
("io.c: do not swallow exceptions at end of block").
-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