Skip to content

Commit

Permalink
chore: fix flaking explorer tests (blockscout#10676)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev authored Sep 3, 2024
1 parent a88ad33 commit 0a9e24f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ defmodule Explorer.Migrator.SanitizeIncorrectWETHTokenTransfersTest do
%{token_contract_address_hash: ^whitelisted_token_address_hash},
%{token_contract_address_hash: ^whitelisted_token_address_hash},
%{token_contract_address_hash: ^whitelisted_token_address_hash}
] = transfers = Repo.all(TokenTransfer)
] = transfers = Repo.all(TokenTransfer, order_by: [asc: :block_number, asc: :log_index])

withdrawal = Enum.at(transfers, 1)
deposit = Enum.at(transfers, 2)
Expand Down
2 changes: 2 additions & 0 deletions apps/explorer/test/explorer/token/metadata_retriever_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,8 @@ defmodule Explorer.Token.MetadataRetrieverTest do
"image" => "https://ipfs.io/ipfs/bafybeig6nlmyzui7llhauc52j2xo5hoy4lzp6442lkve5wysdvjkizxonu"
}
}} == MetadataRetriever.fetch_json(data)

Application.put_env(:explorer, :http_adapter, HTTPoison)
end

test "Fetches metadata from ipfs" do
Expand Down

0 comments on commit 0a9e24f

Please sign in to comment.