From d080e1e0efb63a6341f50509d85ed4dc501d3d04 Mon Sep 17 00:00:00 2001 From: Joe Haines Date: Fri, 15 Dec 2023 08:49:18 +0000 Subject: [PATCH] Sleep before confirming postgres is ready --- features/fixtures/que/app/setup-que.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/features/fixtures/que/app/setup-que.rb b/features/fixtures/que/app/setup-que.rb index 1fc5724b..1e79248b 100644 --- a/features/fixtures/que/app/setup-que.rb +++ b/features/fixtures/que/app/setup-que.rb @@ -20,6 +20,7 @@ begin Timeout::timeout(5) { TCPSocket.new('postgres', 5432).close } + sleep 1 postgres_ready = true rescue Exception attempts += 1