Skip to content

Commit 6dd1a3d

Browse files
committed
add debug print
1 parent 59b1fcf commit 6dd1a3d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/support/protocol_test_case.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,12 @@ def attach_to_cdp_server
403403
begin
404404
sock = Socket.tcp HOST, @remote_info.port
405405
rescue Errno::ECONNREFUSED
406-
raise if (retry_cnt += 1) > 10 # retry up to 10 times
406+
if (retry_cnt += 1) > 10 # retry up to 10 times
407+
STDERR.puts "retry #{retry_cnt} but can not connect..."
408+
raise
409+
end
407410

408-
sleep 0.1
411+
sleep 0.3
409412
retry
410413
end
411414

0 commit comments

Comments
 (0)