test(dsrepl): anticipate transitionless membership changes
E.g. when a membership change is applied twice in a row.
This commit is contained in:
parent
19072414cb
commit
8538a5a5b6
|
@ -207,7 +207,12 @@ apply_stream(DB, NodeStream0, Stream0, N) ->
|
|||
%% Give some time for at least one transition to complete.
|
||||
Transitions = transitions(Node, DB),
|
||||
ct:pal("Transitions after ~p: ~p", [Operation, Transitions]),
|
||||
?retry(200, 10, ?assertNotEqual(Transitions, transitions(Node, DB))),
|
||||
case Transitions of
|
||||
[_ | _] ->
|
||||
?retry(200, 10, ?assertNotEqual(Transitions, transitions(Node, DB)));
|
||||
[] ->
|
||||
ok
|
||||
end,
|
||||
apply_stream(DB, NodeStream0, Stream, N);
|
||||
[Fun | Stream] when is_function(Fun) ->
|
||||
Fun(),
|
||||
|
|
Loading…
Reference in New Issue