Fix /stats/charts/market test (#10392)

pull/10399/head
Victor Baranov 5 months ago committed by GitHub
parent a8e483053e
commit 9a98839aca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      apps/block_scout_web/test/block_scout_web/controllers/api/v2/stats_controller_test.exs

@ -38,13 +38,13 @@ defmodule BlockScoutWeb.API.V2.StatsControllerTest do
describe "/stats/charts/market" do
setup do
configuration = Application.get_env(:explorer, Explorer.ExchangeRates)
Application.put_env(:explorer, Explorer.ExchangeRates, enabled: false)
configuration = Application.get_env(:explorer, Explorer.Market.MarketHistoryCache)
Application.put_env(:explorer, Explorer.Market.MarketHistoryCache, cache_period: 0)
:ok
on_exit(fn ->
Application.put_env(:explorer, Explorer.ExchangeRates, configuration)
Application.put_env(:explorer, Explorer.Market.MarketHistoryCache, configuration)
end)
end

Loading…
Cancel
Save