summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2021-09-08 17:01:26 +1200
committerStefan Metzmacher <metze@samba.org>2021-10-26 12:00:28 +0000
commit30b9be9601b19ef492b6170a74c917bd0cd9eaa7 (patch)
tree7851f57d40679771f6ec8525771ef0c120c67406
parent45cd642a45669619b23ecec7f0735dfe9804bb99 (diff)
downloadsamba-30b9be9601b19ef492b6170a74c917bd0cd9eaa7.tar.gz
pytest/rodc_rwdc: try to avoid race.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14868 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit a169e013e66bab15e594ce49b805edebfcd503cf)
-rw-r--r--source4/dsdb/tests/python/rodc_rwdc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/tests/python/rodc_rwdc.py b/source4/dsdb/tests/python/rodc_rwdc.py
index a09d16a0163..b9ea18e5b68 100644
--- a/source4/dsdb/tests/python/rodc_rwdc.py
+++ b/source4/dsdb/tests/python/rodc_rwdc.py
@@ -251,6 +251,10 @@ class RodcRwdcCachedTests(password_lockout_base.BasePasswordTestCase):
res = ldb_system.search(userdn, attrs=['unicodePwd'])
self.assertTrue('unicodePwd' in res[0])
+ # force replication here to flush any pending preloads (this
+ # was a racy test).
+ self.force_replication()
+
newpass = userpass + '!'
# Forcing replication should blank out password (when changed)