about summary refs log tree commit homepage
path: root/test/unit/test_socket_helper.rb
diff options
context:
space:
mode:
authorbofh@yhbt.net <bofh@yhbt.net>2021-03-14 23:17:24 +0000
committerEW <bofh@yhbt.net>2021-03-15 06:02:52 +0000
commitea5295e8e4dcfaec24efb5030557594aabe645cb (patch)
tree520c0c0ef489ebeaa024bd20bff0c7594b849b79 /test/unit/test_socket_helper.rb
parent89b4ea15506ada542ab218c6819cf236e0afb2a2 (diff)
downloadunicorn-ea5295e8e4dcfaec24efb5030557594aabe645cb.tar.gz
Otherwise we get test failures since we use sysread
and syswrite in many places
Diffstat (limited to 'test/unit/test_socket_helper.rb')
-rw-r--r--test/unit/test_socket_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb
index fbc7bb9..62d5a3a 100644
--- a/test/unit/test_socket_helper.rb
+++ b/test/unit/test_socket_helper.rb
@@ -116,7 +116,7 @@ class TestSocketHelper < Test::Unit::TestCase
       client.syswrite('abcde')
       exit 0
     end
-    s = UNIXSocket.new(@unix_listener_path)
+    s = unix_socket(@unix_listener_path)
     IO.select([s])
     assert_equal 'abcde', s.sysread(5)
     pid, status = Process.waitpid2(pid)