Skip to content

Commit 244b6b0

Browse files
committed
Make sure to wait TCP/IP server to start up
Currently, the test on TCP/IP mode sometimes fails because the debugger fails to connect to debuggee. See https://github.com/ruby/debug/actions/runs/3527685026/jobs/5917010231#step:4:338 FYI: The reason why the test has not failed until now is the test framework did not correctly detect that debuggee was terminated. Since the test framework correctly detect it from 6d9f231, the test began to fail, as it did this time.
1 parent d75e115 commit 244b6b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/support/test_case.rb

+3
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ def setup_unix_domain_socket_remote_debuggee
187187
def setup_tcpip_remote_debuggee
188188
remote_info = setup_remote_debuggee("#{RDBG_EXECUTABLE} -O --port=#{TCPIP_PORT} -- #{temp_file_path}")
189189
remote_info.port = TCPIP_PORT
190+
Timeout.timeout(TIMEOUT_SEC) do
191+
sleep 0.001 until remote_info.debuggee_backlog.join.include? remote_info.port.to_s
192+
end
190193
remote_info
191194
end
192195

0 commit comments

Comments
 (0)