|
@@ -1673,10 +1673,12 @@ four_nodes_concurrency(Config) ->
|
|
%% loop
|
|
%% loop
|
|
RandomMeta = rand:uniform(99999),
|
|
RandomMeta = rand:uniform(99999),
|
|
ok = syn:join(scope_all, <<"concurrent-scope">>, Pid, RandomMeta),
|
|
ok = syn:join(scope_all, <<"concurrent-scope">>, Pid, RandomMeta),
|
|
|
|
+ %% random leave
|
|
case rand:uniform(5) of
|
|
case rand:uniform(5) of
|
|
1 -> syn:leave(scope_all, <<"concurrent-scope">>, Pid);
|
|
1 -> syn:leave(scope_all, <<"concurrent-scope">>, Pid);
|
|
_ -> ok
|
|
_ -> ok
|
|
end,
|
|
end,
|
|
|
|
+ %% random sleep
|
|
RndTime = rand:uniform(30),
|
|
RndTime = rand:uniform(30),
|
|
timer:sleep(RndTime)
|
|
timer:sleep(RndTime)
|
|
end, lists:seq(1, Iterations)),
|
|
end, lists:seq(1, Iterations)),
|