From a59defcc8570b1971ccc7caf4a113963598e58bc Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Thu, 3 Oct 2019 14:57:02 +0300 Subject: [PATCH] fix test --- .../token/metadata_retriever_test.exs | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/explorer/test/explorer/token/metadata_retriever_test.exs b/apps/explorer/test/explorer/token/metadata_retriever_test.exs index 163f69d6cb..9f8ead7468 100644 --- a/apps/explorer/test/explorer/token/metadata_retriever_test.exs +++ b/apps/explorer/test/explorer/token/metadata_retriever_test.exs @@ -98,20 +98,21 @@ defmodule Explorer.Token.MetadataRetrieverTest do end ) - assert [ - %{ - name: "Bancor", - symbol: "BNT", - total_supply: 1_000_000_000_000_000_000, - decimals: 18 - }, - %{ - name: "Bancor", - symbol: "BNT", - total_supply: 1_000_000_000_000_000_000, - decimals: 18 - } - ] = MetadataRetriever.get_functions_of([token.contract_address_hash, token.contract_address_hash]) + assert {:ok, + [ + %{ + name: "Bancor", + symbol: "BNT", + total_supply: 1_000_000_000_000_000_000, + decimals: 18 + }, + %{ + name: "Bancor", + symbol: "BNT", + total_supply: 1_000_000_000_000_000_000, + decimals: 18 + } + ]} = MetadataRetriever.get_functions_of([token.contract_address_hash, token.contract_address_hash]) end test "returns only the functions that were read without error" do