Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Berman committed Aug 21, 2024
1 parent d4b7449 commit ef7caa3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/arweave/test/ar_coordinated_mining_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,14 @@ test_peers_by_partition() ->
%% --------------------------------------------------------------------

assert_peers(ExpectedPeers, Node, Partition) ->
Peers = ar_test_node:remote_call(Node, ar_coordination, get_peers, [Partition]),
?assertEqual(lists:sort(ExpectedPeers), lists:sort(Peers)).
?assert(ar_util:do_until(
fun() ->
Peers = ar_test_node:remote_call(Node, ar_coordination, get_peers, [Partition]),
lists:sort(ExpectedPeers) == lists:sort(Peers)
end,
200,
2000
)).

wait_for_each_node(Miners, ValidatorNode, CurrentHeight, ExpectedPartitions) ->
wait_for_each_node(
Expand Down

0 comments on commit ef7caa3

Please sign in to comment.