Skip to content

Commit

Permalink
Try to fix password test timeout
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nickva committed Feb 10, 2024
1 parent 66c34e2 commit 8f6797b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/elixir/test/password_cache_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8f6797b

Please sign in to comment.