diff --git a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/stats_controller_test.exs b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/stats_controller_test.exs index 85ac41e1d1..907569ccb3 100644 --- a/apps/block_scout_web/test/block_scout_web/controllers/api/v2/stats_controller_test.exs +++ b/apps/block_scout_web/test/block_scout_web/controllers/api/v2/stats_controller_test.exs @@ -37,6 +37,17 @@ defmodule BlockScoutWeb.API.V2.StatsControllerTest do end describe "/stats/charts/market" do + setup do + configuration = Application.get_env(:explorer, Explorer.ExchangeRates) + Application.put_env(:explorer, Explorer.ExchangeRates, enabled: false) + + :ok + + on_exit(fn -> + Application.put_env(:explorer, Explorer.ExchangeRates, configuration) + end) + end + test "get empty data", %{conn: conn} do request = get(conn, "/api/v2/stats/charts/market") assert response = json_response(request, 200)