diff options
| author | Michael Klishin <klishinm@vmware.com> | 2022-12-10 02:24:10 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-10 02:24:10 +0400 |
| commit | aa7f7342eae6a481a550dd7650f9d6c6b75da737 (patch) | |
| tree | 4f4e0694ccc9e1e81fc6b2f4f50575cfd52e8cba | |
| parent | b2a741361d54f5b8076ae78bd3de5f5a207e2dae (diff) | |
| parent | 94d99615c45b9762caeb379771feb2624658a828 (diff) | |
| download | rabbitmq-server-git-aa7f7342eae6a481a550dd7650f9d6c6b75da737.tar.gz | |
Merge pull request #6607 from rabbitmq/rin/windows-rabbit_auth_cache_SUITE-flakes
Relax rabbit_auth_cache_SUITE:random_timing a bit
| -rw-r--r-- | deps/rabbitmq_auth_backend_cache/test/rabbit_auth_cache_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/rabbitmq_auth_backend_cache/test/rabbit_auth_cache_SUITE.erl b/deps/rabbitmq_auth_backend_cache/test/rabbit_auth_cache_SUITE.erl index 907b1c683b..164d9e0b36 100644 --- a/deps/rabbitmq_auth_backend_cache/test/rabbit_auth_cache_SUITE.erl +++ b/deps/rabbitmq_auth_backend_cache/test/rabbit_auth_cache_SUITE.erl @@ -155,11 +155,11 @@ get_deleted(Config) -> random_timing(Config) -> - random_timing(Config, 30000, 1000). + random_timing(Config, 15000, 1000). random_timing(Config, MaxTTL, Parallel) -> AuthCacheModule = ?config(auth_cache_module, Config), - RandomTTls = [{N, rabbit_misc:random(MaxTTL) + 1000} || N <- lists:seq(1, Parallel)], + RandomTTls = [{N, rabbit_misc:random(MaxTTL-1000) + 1000} || N <- lists:seq(1, Parallel)], Pid = self(), Ref = make_ref(), Pids = lists:map( @@ -188,7 +188,7 @@ random_timing(Config, MaxTTL, Parallel) -> end end, % expiry error - timer:sleep(TTL + 200), + timer:sleep(TTL + 500), {error, not_found} = AuthCacheModule:get(Key), Pid ! {ok, self(), Ref} end) |
