fix failing test

pull/2182/head
Ayrat Badykov 6 years ago
parent 18e6cc8925
commit 741ba619fc
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 5
      apps/block_scout_web/test/block_scout_web/channels/exchange_rate_channel_test.exs
  2. 3
      apps/explorer/test/support/data_case.ex

@ -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)

@ -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

Loading…
Cancel
Save