Skip to content

Commit

Permalink
fix acceptance resolver in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne committed Oct 8, 2024
1 parent c7d66e2 commit 1911596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/archethic/transaction_chain_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ defmodule Archethic.TransactionChainTest do
nodes = P2P.authorized_and_available_nodes()

acceptance_resolver = fn %LastTransactionAddress{timestamp: remote_last_address_timestamp} ->
now < remote_last_address_timestamp
DateTime.compare(now, remote_last_address_timestamp) == :lt
end

assert {:error, :acceptance_failed} =
Expand Down Expand Up @@ -331,7 +331,7 @@ defmodule Archethic.TransactionChainTest do
nodes = P2P.authorized_and_available_nodes()

acceptance_resolver = fn %LastTransactionAddress{timestamp: remote_last_address_timestamp} ->
now < remote_last_address_timestamp
DateTime.compare(now, remote_last_address_timestamp) == :lt
end

assert {:ok, ^latest_address} =
Expand Down

0 comments on commit 1911596

Please sign in to comment.