Skip to content

Commit 35358cd

Browse files
committed
reduce flakiness of tenantless containers
1 parent fe7b8fa commit 35358cd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/realtime_web/controllers/fallback_controller.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ defmodule RealtimeWeb.FallbackController do
2727
|> render("error.json", changeset: changeset)
2828
end
2929

30-
def call(conn, {:error, _}) do
30+
def call(conn, {:error, a}) do
31+
IO.inspect(a)
32+
3133
conn
3234
|> put_status(:unauthorized)
3335
|> put_view(RealtimeWeb.ErrorView)

test/support/containers.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ defmodule Containers do
7979
])
8080

8181
check_container_ready(name)
82-
Process.sleep(1000)
82+
# Required as the database might not be available yet for first operations
83+
Process.sleep(4000)
8384
end)
8485

8586
name

0 commit comments

Comments
 (0)