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