From 696f61e21051ccf16dcf4fe93f5dc6da445cbd8c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 19 Feb 2009 03:03:33 -0800 Subject: test_upload: close urandom fd at teardown Prevent the GC from trying to close it (and hitting the wrong descriptor) when @random is reopened for running tests. --- test/unit/test_upload.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 -- cgit v1.2.3-24-ge0c7