Skip to content

Commit e61045c

Browse files
committed
increase retry count
1 parent 6dd1a3d commit e61045c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/support/protocol_test_case.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,13 @@ def attach_to_cdp_server
403403
begin
404404
sock = Socket.tcp HOST, @remote_info.port
405405
rescue Errno::ECONNREFUSED
406-
if (retry_cnt += 1) > 10 # retry up to 10 times
406+
if (retry_cnt += 1) > 20
407407
STDERR.puts "retry #{retry_cnt} but can not connect..."
408408
raise
409409
end
410410

411+
STDERR.puts "retry (#{retry_cnt}) connecting to #{HOST}:#{@remote_info.port}"
412+
411413
sleep 0.3
412414
retry
413415
end

0 commit comments

Comments
 (0)