Bigger timeouts to reduce false-positives
This commit is contained in:
parent
1160e3cc17
commit
c203f5094c
|
@ -153,7 +153,7 @@ random_timing(Config) ->
|
||||||
|
|
||||||
random_timing(Config, MaxTTL, Parallel) ->
|
random_timing(Config, MaxTTL, Parallel) ->
|
||||||
AuthCacheModule = ?config(auth_cache_module, Config),
|
AuthCacheModule = ?config(auth_cache_module, Config),
|
||||||
RandomTTls = [{N, rabbit_misc:random(MaxTTL) + 200} || N <- lists:seq(1, Parallel)],
|
RandomTTls = [{N, rabbit_misc:random(MaxTTL) + 1000} || N <- lists:seq(1, Parallel)],
|
||||||
Pid = self(),
|
Pid = self(),
|
||||||
Ref = make_ref(),
|
Ref = make_ref(),
|
||||||
Pids = lists:map(
|
Pids = lists:map(
|
||||||
|
@ -182,7 +182,7 @@ random_timing(Config, MaxTTL, Parallel) ->
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
% expiry error
|
% expiry error
|
||||||
timer:sleep(TTL + 50),
|
timer:sleep(TTL + 200),
|
||||||
{error, not_found} = AuthCacheModule:get(Key),
|
{error, not_found} = AuthCacheModule:get(Key),
|
||||||
Pid ! {ok, self(), Ref}
|
Pid ! {ok, self(), Ref}
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue