Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f241e2e

Browse files
author
Valentin Rodygin
committedJun 22, 2023
Updated internal TX test to use js tracer
1 parent 1c8c158 commit f241e2e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
 

‎apps/indexer/test/indexer/fetcher/internal_transaction_test.exs

+10-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ defmodule Indexer.Fetcher.InternalTransactionTest do
99
alias Explorer.Chain.{PendingBlockOperation, TokenTransfer}
1010
alias Indexer.Fetcher.{CoinBalance, InternalTransaction, PendingTransaction, TokenBalance}
1111

12-
# MUST use global mode because we aren't guaranteed to get PendingTransactionFetcher's pid back fast enough to `allow`
13-
# it to use expectations and stubs from test's pid.
14-
setup :set_mox_global
12+
setup do
13+
# MUST use global mode because we aren't guaranteed to get PendingTransactionFetcher's pid back fast enough to `allow`
14+
# it to use expectations and stubs from test's pid.
15+
set_mox_global()
16+
17+
initial_env = Application.get_all_env(:ethereum_jsonrpc)
18+
Application.put_env(:ethereum_jsonrpc, EthereumJSONRPC.Geth, tracer: "js")
19+
20+
on_exit(fn -> Application.put_all_env([{:ethereum_jsonrpc, initial_env}]) end)
21+
end
1522

1623
setup :verify_on_exit!
1724

0 commit comments

Comments
 (0)
This repository has been archived.