fix exchange rate flickering test (#10383)

pull/10390/head
Victor Baranov 5 months ago committed by GitHub
parent b5cd86277a
commit a5a7ebbba2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      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)

Loading…
Cancel
Save