about summary refs log tree commit homepage
path: root/test/test_tcp_info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tcp_info.rb')
-rw-r--r--test/test_tcp_info.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_tcp_info.rb b/test/test_tcp_info.rb
index b107565..2dc5c50 100644
--- a/test/test_tcp_info.rb
+++ b/test/test_tcp_info.rb
@@ -1,4 +1,5 @@
 # -*- encoding: binary -*-
+# frozen_string_literal: false
 require 'test/unit'
 require 'tempfile'
 require 'raindrops'
@@ -60,10 +61,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