aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-07-08 14:20:29 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-07-08 15:15:46 +0900
commit4658d65242f58102084528f628eb4a8d5275b414 (patch)
treeff54bf892bbd9bf2008dd626542d6056008d9718
parent95bf9049a71e4e6fbaea9709df4257e21675d94f (diff)
downloadruby-4658d65242f58102084528f628eb4a8d5275b414.tar.gz
Load socket explicitly for TCPServer
-rw-r--r--test/open-uri/test_ftp.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/open-uri/test_ftp.rb b/test/open-uri/test_ftp.rb
index 3a6cd14ea9..9698ff2777 100644
--- a/test/open-uri/test_ftp.rb
+++ b/test/open-uri/test_ftp.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: true
require 'test/unit'
+require 'socket'
require 'open-uri'
class TestOpenURIFtp < Test::Unit::TestCase