diff options
author | Eric Wong <e@80x24.org> | 2013-10-30 01:50:11 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-30 07:00:54 +0000 |
commit | 72e20c9d7aac1837f1565cff5856e50c692304be (patch) | |
tree | a48b1150a4e4209774a368f3f74cadaa573fdfa2 /test | |
parent | e07ce2ae90195a66749256a24c94b228e7c9963f (diff) | |
download | yahns-72e20c9d7aac1837f1565cff5856e50c692304be.tar.gz |
This allows us to avoid some FD leakage and waste of memory allocations.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_input.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_input.rb b/test/test_input.rb index 404263d..fe09a9a 100644 --- a/test/test_input.rb +++ b/test/test_input.rb @@ -46,6 +46,7 @@ class TestInput < Testcase c.write "PUT / HTTP/1.1\r\nContent-Length: 666\r\n\r\n" assert_equal c, c.wait(6) Timeout.timeout(30) { assert_match %r{HTTP/1\.1 408 }, c.read } + c.close ensure quit_wait(pid) end |