about summary refs log tree commit homepage
path: root/test/test_linux.rb
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2020-01-06 09:54:50 +0000
committerEric Wong <e@80x24.org>2020-01-06 09:56:28 +0000
commit85486f9af18e4f249f23253e3b251e685b323912 (patch)
treebb98971324a6416d782ec3deab39e4b404cda6c3 /test/test_linux.rb
parent6ec35b0be879970931a67f5aa84b0e12099b12fd (diff)
downloadraindrops-85486f9af18e4f249f23253e3b251e685b323912.tar.gz
Newer rubies have more warnings
Diffstat (limited to 'test/test_linux.rb')
-rw-r--r--test/test_linux.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_linux.rb b/test/test_linux.rb
index bfefcc4..7808469 100644
--- a/test/test_linux.rb
+++ b/test/test_linux.rb
@@ -76,6 +76,7 @@ class TestLinux < Test::Unit::TestCase
 
     assert_equal 0, stats[tmp.path].active
     assert_equal 0, stats[tmp.path].queued
+    us.close
   end
 
   def test_unix_resolves_symlinks
@@ -151,8 +152,8 @@ class TestLinux < Test::Unit::TestCase
     assert_equal 1, stats.size
     assert_equal 0, stats[addr].queued
     assert_equal 1, stats[addr].active
-    ensure
-      nlsock.close
+  ensure
+    nlsock.close
   end
 
   def test_tcp_multi