fix ChannelCase

pull/2182/head
Ayrat Badykov 6 years ago
parent 6c6b2d11ce
commit 9156f2d2e9
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 3
      apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs
  2. 3
      apps/block_scout_web/test/support/channel_case.ex

@ -20,9 +20,6 @@ defmodule BlockScoutWeb.ExchangeRateChannelTest do
ExchangeRates.init([]) 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{ token = %Token{
available_supply: Decimal.new("1000000.0"), available_supply: Decimal.new("1000000.0"),
total_supply: Decimal.new("1000000.0"), total_supply: Decimal.new("1000000.0"),

@ -31,6 +31,9 @@ defmodule BlockScoutWeb.ChannelCase do
setup tags do setup tags do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Explorer.Repo) :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 unless tags[:async] do
Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo, {:shared, self()}) Ecto.Adapters.SQL.Sandbox.mode(Explorer.Repo, {:shared, self()})
end end

Loading…
Cancel
Save