From f725af9363dc72b57ac272655b7f10874f9cbe57 Mon Sep 17 00:00:00 2001 From: bchamagne Date: Tue, 8 Oct 2024 17:38:17 +0200 Subject: [PATCH] fix acceptance resolver in tests --- test/archethic/transaction_chain_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/archethic/transaction_chain_test.exs b/test/archethic/transaction_chain_test.exs index 04b2430e6..739b5eed7 100644 --- a/test/archethic/transaction_chain_test.exs +++ b/test/archethic/transaction_chain_test.exs @@ -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} = @@ -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} =