Skip to content

Commit a588738

Browse files
committed
test: resolve v11.0.3 merge conflict in internal_transaction_test
Upstream v11.0.3 removed the 'doesn't delete pending block operations after block import if no async process was requested' test; accept that removal. Keep the DOS-custom 'filter_non_traceable_transactions/1' describe block (zetachain test) which exists only on the DOS side. Resolved file == upstream v11.0.3 + the 13-line DOS describe block, verified by diff.
1 parent 7d78f8e commit a588738

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

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

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -341,42 +341,6 @@ defmodule Indexer.Fetcher.InternalTransactionTest do
341341
end
342342
end
343343

344-
<<<<<<< HEAD
345-
test "doesn't delete pending block operations after block import if no async process was requested", %{
346-
json_rpc_named_arguments: json_rpc_named_arguments
347-
} do
348-
fetcher_options =
349-
Keyword.merge([poll: true, json_rpc_named_arguments: json_rpc_named_arguments], InternalTransaction.defaults())
350-
351-
if fetcher_options[:poll] do
352-
expect(EthereumJSONRPC.Mox, :json_rpc, fn [%{id: id}], _options ->
353-
{:ok, [%{id: id, result: []}]}
354-
end)
355-
end
356-
357-
InternalTransaction.Supervisor.Case.start_supervised!(fetcher_options)
358-
359-
%Ecto.Changeset{valid?: true, changes: block_changes} =
360-
Block.changeset(%Block{}, params_for(:block, miner_hash: insert(:address).hash, number: 1))
361-
362-
changes_list = [block_changes]
363-
timestamp = DateTime.utc_now()
364-
options = %{timestamps: %{inserted_at: timestamp, updated_at: timestamp}}
365-
366-
assert [] = Repo.all(PendingBlockOperation)
367-
368-
{:ok, %{blocks: [%{number: block_number, hash: block_hash}]}} =
369-
Multi.new()
370-
|> Blocks.run(changes_list, options)
371-
|> Repo.transaction()
372-
373-
assert %{block_number: ^block_number, block_hash: ^block_hash} = Repo.one(PendingBlockOperation)
374-
375-
Process.sleep(4000)
376-
377-
assert %{block_number: ^block_number, block_hash: ^block_hash} = Repo.one(PendingBlockOperation)
378-
end
379-
380344
describe "filter_non_traceable_transactions/1" do
381345
test "does not raise when transaction params do not include type on zetachain" do
382346
chain_type = Application.get_env(:explorer, :chain_type)
@@ -390,8 +354,6 @@ defmodule Indexer.Fetcher.InternalTransactionTest do
390354
end
391355
end
392356

393-
=======
394-
>>>>>>> v11.0.3
395357
if Application.compile_env(:explorer, :chain_type) == :arbitrum do
396358
test "fetches internal transactions from Arbitrum", %{
397359
json_rpc_named_arguments: json_rpc_named_arguments

0 commit comments

Comments
 (0)