Skip to content

Commit

Permalink
Update verify_rejoin.erl (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsumner committed Mar 15, 2023
1 parent 9f9e2b2 commit e98ee1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/verify_rejoin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,12 @@ tictacaae_stats(Node) ->
{RCT, CCT}.

-define(VERIFY_COUNT, 15).
-define(PRESTART_SLEEP, 200).
-define(REPAIR_SLEEP, 2000).
-define(TOTAL_REPAIR_TIME, 120000).

wait_until_repair_complete(Node) ->
lager:info("Waiting until repair complete"),
wait_until_repair_complete(Node, ?TOTAL_REPAIR_TIME, false).

wait_until_repair_complete(_Node, 0, false) ->
Expand All @@ -363,9 +365,9 @@ wait_until_repair_complete(Node, TimeToWait, false) ->
Transfers = lists:flatten(TransfersPerNode),
case Transfers of
[] ->
timer:sleep(?REPAIR_SLEEP),
timer:sleep(?PRESTART_SLEEP),
wait_until_repair_complete(
Node, TimeToWait - ?REPAIR_SLEEP, false);
Node, TimeToWait - ?PRESTART_SLEEP, false);
Transfers ->
lager:info(
"Transfers started ~w", [lists:flatten(Transfers)]),
Expand Down

0 comments on commit e98ee1c

Please sign in to comment.