test/test_linux_ipv6.rb in raindrops-0.13.0 vs test/test_linux_ipv6.rb in raindrops-0.14.0

- old
+ new

@@ -10,9 +10,17 @@ class TestLinuxIPv6 < Test::Unit::TestCase include Raindrops::Linux TEST_ADDR = ENV["TEST_HOST6"] || "::1" + def setup + @to_close = [] + end + + def teardown + @to_close.each { |io| io.close unless io.closed? } + end + def test_tcp s = TCPServer.new(TEST_ADDR, 0) port = s.addr[1] addr = "[#{TEST_ADDR}]:#{port}" addrs = [ addr ]