From 72e20c9d7aac1837f1565cff5856e50c692304be Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Oct 2013 01:50:11 +0000 Subject: test_input: close client when we're done with it This allows us to avoid some FD leakage and waste of memory allocations. --- test/test_input.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 -- cgit v1.2.3-24-ge0c7