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 03:37:13 UTC

(couchdb) branch fix-timeout-in-password-cache-test created (now 79697600b)

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

vatamane pushed a change to branch fix-timeout-in-password-cache-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at 79697600b Try to fix password test timeout

This branch includes the following new commits:

     new 79697600b Try to fix password test timeout

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb) 01/01: Try to fix password test timeout

Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch fix-timeout-in-password-cache-test
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 79697600ba2b8c15fdbd77b297af42939c832eea
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)