Skip to content

Commit

Permalink
A little extra delay, for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Jun 21, 2024
1 parent 6b5f18d commit 37dd325
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/support/docker_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def stop

def wait_for_ssh_server(retries=3)
Socket.tcp("localhost", SSH_SERVER_PORT, connect_timeout: 1).close
sleep(1)
rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT
retries -= 1
sleep(2) && retry if retries.positive?
Expand Down

0 comments on commit 37dd325

Please sign in to comment.