diff --git a/apps/block_scout_web/test/block_scout_web/controllers/block_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/block_controller_test.exs index 3145ce1273..9dea0841f9 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/block_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/block_controller_test.exs @@ -2,6 +2,13 @@ defmodule BlockScoutWeb.BlockControllerTest do use BlockScoutWeb.ConnCase alias Explorer.Chain.Block + setup do + Supervisor.terminate_child(Explorer.Supervisor, ConCache) + Supervisor.restart_child(Explorer.Supervisor, ConCache) + + :ok + end + describe "GET show/2" do test "with block redirects to block transactions route", %{conn: conn} do insert(:block, number: 3) diff --git a/apps/block_scout_web/test/block_scout_web/features/viewing_chain_test.exs b/apps/block_scout_web/test/block_scout_web/features/viewing_chain_test.exs index 67e0984576..1add7ed9d5 100644 --- a/apps/block_scout_web/test/block_scout_web/features/viewing_chain_test.exs +++ b/apps/block_scout_web/test/block_scout_web/features/viewing_chain_test.exs @@ -10,6 +10,9 @@ defmodule BlockScoutWeb.ViewingChainTest do alias Explorer.Counters.AddressesWithBalanceCounter setup do + Supervisor.terminate_child(Explorer.Supervisor, ConCache) + Supervisor.restart_child(Explorer.Supervisor, ConCache) + Enum.map(401..404, &insert(:block, number: &1)) block = insert(:block, number: 405)