Skip to content

Commit

Permalink
Issue 6446 - Fix test_acct_policy_consumer test to wait enough for la…
Browse files Browse the repository at this point in the history
…stLoginHistory update (#6530)

Adding a small sleep to wait for lastLoginHistory update after the bind
operation.

Relates: #6446

Author: Masahiro Matsuya

Reviewed by: tbordaz
  • Loading branch information
mmatsuya authored Jan 24, 2025
1 parent 86dd51f commit 5ca66ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dirsrvtests/tests/suites/plugins/accpol_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,7 @@ def test_acct_policy_consumer(topology_m1c1, request):
time.sleep(2)
user_supplier = users_supplier.get("test_user_1000")
user_supplier.bind(USER_PW)
time.sleep(2)

# Verify there is no referral error
results = supplier.ds_error_log.match('.*.acct_update_login_history - Modify error 10 on entry*')
Expand All @@ -1391,6 +1392,7 @@ def test_acct_policy_consumer(topology_m1c1, request):
time.sleep(2)
user_consumer = users_supplier.get("test_user_1000")
user_consumer.bind(USER_PW)
time.sleep(2)

# Verify there is no referral error
results = consumer.ds_error_log.match('.*.acct_update_login_history - Modify error 10 on entry*')
Expand Down

0 comments on commit 5ca66ba

Please sign in to comment.