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 9dea0841f9..e8c4af7de8 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 @@ -3,8 +3,8 @@ defmodule BlockScoutWeb.BlockControllerTest do alias Explorer.Chain.Block setup do - Supervisor.terminate_child(Explorer.Supervisor, ConCache) - Supervisor.restart_child(Explorer.Supervisor, ConCache) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, :blocks}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, :blocks}) :ok end diff --git a/apps/block_scout_web/test/block_scout_web/controllers/chain_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/chain_controller_test.exs index 701a991c55..f902f15ad4 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/chain_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/chain_controller_test.exs @@ -9,8 +9,8 @@ defmodule BlockScoutWeb.ChainControllerTest do alias Explorer.Counters.AddressesWithBalanceCounter setup do - Supervisor.terminate_child(Explorer.Supervisor, ConCache) - Supervisor.restart_child(Explorer.Supervisor, ConCache) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, :blocks}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, :blocks}) start_supervised!(AddressesWithBalanceCounter) AddressesWithBalanceCounter.consolidate() 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 1add7ed9d5..a32e4f5da3 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,8 +10,8 @@ defmodule BlockScoutWeb.ViewingChainTest do alias Explorer.Counters.AddressesWithBalanceCounter setup do - Supervisor.terminate_child(Explorer.Supervisor, ConCache) - Supervisor.restart_child(Explorer.Supervisor, ConCache) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, :blocks}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, :blocks}) Enum.map(401..404, &insert(:block, number: &1)) diff --git a/apps/explorer/test/explorer/chain/blocks_cache_test.exs b/apps/explorer/test/explorer/chain/blocks_cache_test.exs index f030502dc3..687d2ff30a 100644 --- a/apps/explorer/test/explorer/chain/blocks_cache_test.exs +++ b/apps/explorer/test/explorer/chain/blocks_cache_test.exs @@ -5,8 +5,8 @@ defmodule Explorer.Chain.BlocksCacheTest do alias Explorer.Repo setup do - Supervisor.terminate_child(Explorer.Supervisor, ConCache) - Supervisor.restart_child(Explorer.Supervisor, ConCache) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, :blocks}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, :blocks}) :ok end diff --git a/apps/explorer/test/support/data_case.ex b/apps/explorer/test/support/data_case.ex index ebaf91cf3d..1386a55d36 100644 --- a/apps/explorer/test/support/data_case.ex +++ b/apps/explorer/test/support/data_case.ex @@ -40,8 +40,8 @@ defmodule Explorer.DataCase do end Explorer.Chain.BlockNumberCache.setup() - Supervisor.terminate_child(Explorer.Supervisor, ConCache) - Supervisor.restart_child(Explorer.Supervisor, ConCache) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, :blocks}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, :blocks}) :ok end