Skip to content

Commit

Permalink
fixup! test: get tests to pass without setting NONCE_LIMITER_RESET_FR…
Browse files Browse the repository at this point in the history
…EQUENCY
  • Loading branch information
JamesPiechota committed Dec 24, 2024
1 parent 0eb8ed8 commit 5713fed
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions apps/arweave/test/ar_test_node.erl
Original file line number Diff line number Diff line change
Expand Up @@ -852,16 +852,22 @@ wait_until_height(Node, TargetHeight) ->
wait_until_height(Node, TargetHeight, true).

wait_until_height(Node, TargetHeight, Strict) ->
BI = case Node of
{BI, Height} = case Node of
main ->
wait_until_height(TargetHeight);
{
wait_until_height(TargetHeight),
ar_node:get_height()
};
_ ->
remote_call(Node, ?MODULE, wait_until_height, [TargetHeight],
?WAIT_UNTIL_BLOCK_HEIGHT_TIMEOUT + 500)
{
remote_call(Node, ?MODULE, wait_until_height, [TargetHeight],
?WAIT_UNTIL_BLOCK_HEIGHT_TIMEOUT + 500),
remote_call(Node, ar_node, get_height, [])
}
end,
case Strict of
true ->
?assertEqual(TargetHeight, remote_call(Node, ar_node, get_height, []));
?assertEqual(TargetHeight, Height);
false ->
ok
end,
Expand Down

0 comments on commit 5713fed

Please sign in to comment.