test_upload: close urandom fd at teardown
commit696f61e21051ccf16dcf4fe93f5dc6da445cbd8c
authorEric Wong <normalperson@yhbt.net>
Thu, 19 Feb 2009 11:03:33 +0000 (19 03:03 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 20 Feb 2009 08:01:31 +0000 (20 00:01 -0800)
treefbdca1922f91688d1cc6b023ab42e9b9506f586f
parent2ff0f8ae66623424dd64b865e7415dd007ade280
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