Skip to content

Commit

Permalink
Fix unstable testcase t_empty_initial_slotmap
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiderkwast committed Sep 19, 2023
1 parent 7b1d430 commit 9210683
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/ered_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,15 @@ t_empty_initial_slotmap(_) ->
?MSG(#{msg_type := cluster_ok}),

%% Ingore all slotmap updates. There may be multiple of those before all
%% nodes have discovered each other.
(fun Loop() ->
receive
#{msg_type := slot_map_updated} -> Loop()
after 0 -> ok
end
end)(),
%% nodes have discovered each other. There may be incomplete slotmaps as
%% well before all nodes have discovered each other, so the connections to
%% some nodes may be temporarily deactivated.
?OPTIONAL_MSG(#{msg_type := slot_map_updated}),
?OPTIONAL_MSG(#{msg_type := slot_map_updated}),
?OPTIONAL_MSG(#{msg_type := slot_map_updated}),
?OPTIONAL_MSG(#{msg_type := slot_map_updated}),
?OPTIONAL_MSG(#{msg_type := node_deactivated}),
?OPTIONAL_MSG(#{msg_type := node_deactivated}),

no_more_msgs().

Expand Down

0 comments on commit 9210683

Please sign in to comment.