Tune timeout in tests.

This is not a recommended backend, so we don't care
if it's not precise.
This commit is contained in:
Daniil Fedotov 2017-09-12 14:19:50 +01:00
parent b43eb0d547
commit d21439145d
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)