aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2023-12-12 10:31:14 +0900
committerYusuke Endoh <mame@ruby-lang.org>2023-12-12 10:31:37 +0900
commit73b43fffa163e11ce9e7e8880631acb870ac1695 (patch)
tree64778309e647ac23658ca0929c86fe778c88a33f /test/socket
parent207dcf07e1e1359ca87590c8c22867024f20ae03 (diff)
downloadruby-73b43fffa163e11ce9e7e8880631acb870ac1695.tar.gz
Prevent a warning: assigned but unused variable - status
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_tcp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb
index 0f060a7e0a..35d361f060 100644
--- a/test/socket/test_tcp.rb
+++ b/test/socket/test_tcp.rb
@@ -260,7 +260,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
# Make a request which will hit our fake DNS swerver - this needs to be in _another_
# process because glibc will cache resolver info across the fork otherwise.
load_path_args = $LOAD_PATH.flat_map { ['-I', _1] }
- _, _, status = Open3.capture3('/proc/self/exe', *load_path_args, '-rsocket', '-e', <<~RUBY)
+ Open3.capture3('/proc/self/exe', *load_path_args, '-rsocket', '-e', <<~RUBY)
TCPSocket.open('www.example.com', 4444)
RUBY