Skip to content

Commit

Permalink
Sleep before confirming postgres is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Dec 15, 2023
1 parent a4eb473 commit d080e1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions features/fixtures/que/app/setup-que.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
begin
Timeout::timeout(5) { TCPSocket.new('postgres', 5432).close }

sleep 1
postgres_ready = true
rescue Exception
attempts += 1
Expand Down

0 comments on commit d080e1e

Please sign in to comment.