Skip to content

Commit

Permalink
maybe de-flake
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Jul 18, 2024
1 parent 8e2bbf8 commit 82c4cbc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/ra_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -977,11 +977,12 @@ snapshot_installation_with_call_crash(Config) ->
{ok, _, _} = ra:process_command(Leader, deq),

meck:new(ra_server, [passthrough]),
meck:expect(ra_server, handle_follower, fun (#install_snapshot_rpc{}, _) ->
exit(timeout);
(A, B) ->
meck:passthrough([A, B])
end),
meck:expect(ra_server, handle_follower,
fun (#install_snapshot_rpc{}, _) ->
exit(timeout);
(A, B) ->
meck:passthrough([A, B])
end),
%% start the down node again, catchup should involve sending a snapshot
ok = ra:restart_server(?SYS, Down),

Expand All @@ -994,7 +995,7 @@ snapshot_installation_with_call_crash(Config) ->
{ok, {N2Idx, _}, _} = ra:local_query(N2, fun ra_lib:id/1),
{ok, {N3Idx, _}, _} = ra:local_query(N3, fun ra_lib:id/1),
(N1Idx == N2Idx) and (N1Idx == N3Idx)
end, 20)),
end, 200)),
ok.


Expand Down

0 comments on commit 82c4cbc

Please sign in to comment.