You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/02/10 04:21:45 UTC

(couchdb) branch main updated: Try to fix password test timeout

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f6797b8d Try to fix password test timeout
8f6797b8d is described below

commit 8f6797b8d35c7fb0e257e5873f01d8f04b9e1031
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Fri Feb 9 22:35:45 2024 -0500

    Try to fix password test timeout
    
    In this test we have to wait for 5 seconds as that's the hardcoded timeout in
    the hash worker. However let's try to wait just a bit longer (+500msec) in case
    there a race condition or some schedulers are blocked.
---
 test/elixir/test/password_cache_test.exs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/elixir/test/password_cache_test.exs b/test/elixir/test/password_cache_test.exs
index d7bff2454..5f4569966 100644
--- a/test/elixir/test/password_cache_test.exs
+++ b/test/elixir/test/password_cache_test.exs
@@ -129,7 +129,7 @@ defmodule PasswordCacheTest do
     save_doc(db_name, user1)
 
     # Wait for auth cache to notice password change
-    :timer.sleep(5000)
+    :timer.sleep(5500)
 
     # Slow rejection for wrong password
     assert_cache(:expect_slow, "user1", "wrong_password", :expect_login_fail)