diff --git a/apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs b/apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs index f41a764c6e..0cf9a6e4b6 100644 --- a/apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs +++ b/apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs @@ -20,6 +20,9 @@ defmodule BlockScoutWeb.ExchangeRateChannelTest do ExchangeRates.init([]) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) + token = %Token{ available_supply: Decimal.new("1000000.0"), total_supply: Decimal.new("1000000.0"), @@ -76,6 +79,8 @@ defmodule BlockScoutWeb.ExchangeRateChannelTest do Market.bulk_insert_history(records) + Market.fetch_recent_history() + topic = "exchange_rate:new_rate" @endpoint.subscribe(topic) diff --git a/apps/explorer/test/support/data_case.ex b/apps/explorer/test/support/data_case.ex index de1649578a..c201932cef 100644 --- a/apps/explorer/test/support/data_case.ex +++ b/apps/explorer/test/support/data_case.ex @@ -43,9 +43,6 @@ defmodule Explorer.DataCase do Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()}) Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Chain.BlocksCache.cache_name()}) - Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) - Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) - :ok end