Prevent a warning: assigned but unused variable - status

This commit is contained in:
Yusuke Endoh 2023-12-12 10:31:14 +09:00
parent 207dcf07e1
commit 73b43fffa1

View File

@ -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