diff --git a/spec/net_x/http_unix_spec.rb b/spec/net_x/http_unix_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/net_x/http_unix_spec.rb
+++ b/spec/net_x/http_unix_spec.rb
@@ -22,7 +22,7 @@ describe NetX::HTTPUnix do
           conn.puts "HTTP/1.1 200 OK"
           conn.puts ""
           conn.puts "Hello from TCP server"
-          conn.close
+          conn.close_write
         end
       end
     end
@@ -34,7 +34,7 @@ describe NetX::HTTPUnix do
           conn.puts "HTTP/1.1 200 OK"
           conn.puts ""
           conn.puts "Hello from UNIX server"
-          conn.close
+          conn.close_write
         end
       end
     end
(maint) improve test suite to work on modern rubies

Without this change, tests would fail with Errno::ECONNRESET or Errno::EPIPE as the server would close the connection without reading all of the client's messages. Trying to actually read the request lead to lock-ups. Since this doesn't actually have to read anything, `close_write` works well enough for this.