Skip to content

Commit 61ae0b7

Browse files
committed
fixup! Simplify socket connection to use IPv4 only
1 parent 9c98b39 commit 61ae0b7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_reporters/minitest_reporter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_minitest_spec_output
173173
def gather_events(uri, output: :stdout)
174174
plugin_path = File.expand_path("lib/ruby_lsp/test_reporters/minitest_reporter.rb")
175175

176-
server = TCPServer.new("localhost", 0)
176+
server = TCPServer.new("127.0.0.1", 0)
177177
port = server.addr[1].to_s
178178
events = []
179179
socket = nil #: Socket?

test/test_reporters/test_unit_reporter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_crashing_example
9797
def gather_events(uri, output: :stdout)
9898
reporter_path = File.expand_path(File.join("lib", "ruby_lsp", "test_reporters", "test_unit_reporter.rb"))
9999

100-
server = TCPServer.new("localhost", 0)
100+
server = TCPServer.new("127.0.0.1", 0)
101101
port = server.addr[1].to_s
102102
events = []
103103
socket = nil #: Socket?

0 commit comments

Comments
 (0)