From 9156f2d2e9f1d4b1d12b207f2f2a1978667ab1ee Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Mon, 17 Jun 2019 15:36:36 +0300 Subject: [PATCH] fix ChannelCase --- .../block_scout_web/channels/exchange_rate_channel_test.exs | 3 --- apps/block_scout_web/test/support/channel_case.ex | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) 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 0cf9a6e4b6..062809bec3 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,9 +20,6 @@ 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"), diff --git a/apps/block_scout_web/test/support/channel_case.ex b/apps/block_scout_web/test/support/channel_case.ex index fcb7ddad66..27ef9f1fce 100644 --- a/apps/block_scout_web/test/support/channel_case.ex +++ b/apps/block_scout_web/test/support/channel_case.ex @@ -31,6 +31,9 @@ defmodule BlockScoutWeb.ChannelCase do setup tags do :ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo) + Supervisor.terminate_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) + Supervisor.restart_child(Explorer.Supervisor, {ConCache, Explorer.Market.MarketHistoryCache.cache_name()}) + unless tags[:async] do Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo, {:shared, self()}) end