about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-19 03:03:33 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-20 00:01:31 -0800
commit696f61e21051ccf16dcf4fe93f5dc6da445cbd8c (patch)
treefbdca1922f91688d1cc6b023ab42e9b9506f586f /test
parent2ff0f8ae66623424dd64b865e7415dd007ade280 (diff)
downloadunicorn-696f61e21051ccf16dcf4fe93f5dc6da445cbd8c.tar.gz
Prevent the GC from trying to close it (and hitting the wrong
descriptor) when @random is reopened for running tests.
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_upload.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/test_upload.rb b/test/unit/test_upload.rb
index 3e9a115..7629fbe 100644
--- a/test/unit/test_upload.rb
+++ b/test/unit/test_upload.rb
@@ -30,6 +30,7 @@ class UploadTest < Test::Unit::TestCase
 
   def teardown
     redirect_test_io { @server.stop(true) } if @server
+    @random.close
   end
 
   def test_put