diff options
author | Eric Wong <bofh@yhbt.net> | 2020-01-06 09:54:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-01-06 09:56:28 +0000 |
commit | 85486f9af18e4f249f23253e3b251e685b323912 (patch) | |
tree | bb98971324a6416d782ec3deab39e4b404cda6c3 /test/test_tcp_info.rb | |
parent | 6ec35b0be879970931a67f5aa84b0e12099b12fd (diff) | |
download | raindrops-85486f9af18e4f249f23253e3b251e685b323912.tar.gz |
Newer rubies have more warnings
Diffstat (limited to 'test/test_tcp_info.rb')
-rw-r--r-- | test/test_tcp_info.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_tcp_info.rb b/test/test_tcp_info.rb index b107565..2ddacfd 100644 --- a/test/test_tcp_info.rb +++ b/test/test_tcp_info.rb @@ -60,10 +60,10 @@ class TestTCP_Info < Test::Unit::TestCase a = s.accept i = Raindrops::TCP_Info.new(a) assert i.last_data_recv >= delay_ms, "#{i.last_data_recv} < #{delay_ms}" - ensure - c.close if c - a.close if a - s.close + ensure + c.close if c + a.close if a + s.close end def test_tcp_server_state_closed |