From 02bd0ab06c1f7b8aff2dff9231f9bd93c5c1cb90 Mon Sep 17 00:00:00 2001 From: sl1depengwyn Date: Tue, 4 Oct 2022 15:45:34 +0300 Subject: [PATCH] Fix coin_id test --- CHANGELOG.md | 1 + .../test/explorer/exchange_rates/source/coin_gecko_test.exs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 930d9f54d9..ceb6319ef5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - [#6106](https://github.com/blockscout/blockscout/pull/6106) - Fix 500 response on `/coin-balance` for empty address - [#6118](https://github.com/blockscout/blockscout/pull/6118) - Fix unfetched token balances - [#6163](https://github.com/blockscout/blockscout/pull/6163) - Fix rate limit logs +- [#6223](https://github.com/blockscout/blockscout/pull/6223) - Fix coin_id test ### Chore diff --git a/apps/explorer/test/explorer/exchange_rates/source/coin_gecko_test.exs b/apps/explorer/test/explorer/exchange_rates/source/coin_gecko_test.exs index 652a727414..9f28e12814 100644 --- a/apps/explorer/test/explorer/exchange_rates/source/coin_gecko_test.exs +++ b/apps/explorer/test/explorer/exchange_rates/source/coin_gecko_test.exs @@ -115,7 +115,9 @@ defmodule Explorer.ExchangeRates.Source.CoinGeckoTest do {:ok, bypass: bypass} end - test "fetches poa coin id by default", %{bypass: bypass} do + test "fetches poa coin id", %{bypass: bypass} do + Application.put_env(:explorer, :coin, "POA") + Bypass.expect(bypass, "GET", "/coins/list", fn conn -> Conn.resp(conn, 200, @coins_list) end)