Merge pull request #1175 from poanetwork/fix-random-failing-test

Fix randomly failing test
pull/1219/head
Andrew Cravenho 6 years ago committed by GitHub
commit fa7d87c2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/explorer/test/explorer/chain/address/token_test.exs

@ -233,13 +233,14 @@ defmodule Explorer.Chain.Address.TokenTest do
to_address: build(:address) to_address: build(:address)
) )
fetched_tokens = last_fetched_token =
address.hash address.hash
|> Address.Token.list_address_tokens_with_balance() |> Address.Token.list_address_tokens_with_balance()
|> Repo.all() |> Repo.all()
|> Enum.map(& &1.contract_address_hash) |> Enum.map(& &1.contract_address_hash)
|> List.last()
assert fetched_tokens == [token2.contract_address_hash, token3.contract_address_hash, token.contract_address_hash] assert last_fetched_token == token.contract_address_hash
end end
test "does not return tokens with zero balance" do test "does not return tokens with zero balance" do

Loading…
Cancel
Save