Merge branch 'stable'

This commit is contained in:
Daniil Fedotov 2017-09-12 14:21:15 +01:00
commit 6f9203220d
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,8 @@ random_timing(Config, MaxTTL, Parallel) ->
{error, not_found} = AuthCacheModule:get(Key),
ok = AuthCacheModule:put(Key, Value, TTL),
{ok, Value} = AuthCacheModule:get(Key),
% 10ms expiry error
timer:sleep(TTL + 10),
% 20ms expiry error
timer:sleep(TTL + 20),
{error, not_found} = AuthCacheModule:get(Key),
Pid ! {ok, self(), Ref}
end)