389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
213 stars 94 forks source link

Issue 6258 - Add sleep for ramdom failure in two tests #6261

Open mmatsuya opened 4 months ago

mmatsuya commented 4 months ago

Bug Description: The following test fails frequently. In the first one, the access log is checked before it's written. In the second one, multiple threads with the same file descriptor for access log file writes the logs with out of order.

dirsrvtests/tests/suites/healthcheck/health_config_test.py::test_healthcheck_notes_unindexed_search dirsrvtests/tests/suites/paged_results/paged_results_test.py::test_multi_suffix_search

Fix Description: Adding sleep mitigates the failure.

Fixes: https://github.com/389ds/389-ds-base/issues/6258

(cherry-picked from the commit 1bd2e6e2a95e3f373fbdb7f5f79764687cae46e9)