about summary refs log tree commit homepage
path: root/test/test_unixserver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_unixserver.rb')
-rw-r--r--test/test_unixserver.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unixserver.rb b/test/test_unixserver.rb
index b061af0..c91354d 100644
--- a/test/test_unixserver.rb
+++ b/test/test_unixserver.rb
@@ -21,7 +21,7 @@ class TestUNIXServer < Testcase
   end
 
   def teardown
-    @clients.each { |io| io.close unless io.closed? }
+    @clients.each(&:close)
     if File.exist?(@tmp.path)
       @tmp.close!
     else
@@ -41,7 +41,7 @@ class TestUNIXServer < Testcase
     @srv.run_once # nothing
     msgs = []
     clients = []
-    client.send("HELLO", Socket::MSG_EOR)
+    client.send("HELLO", 0)
     @srv.run_once do |c, msg|
       clients << c
       msgs << msg