]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pytest/rodc_rwdc: try to avoid race.
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 8 Sep 2021 05:01:26 +0000 (17:01 +1200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Oct 2021 22:37:10 +0000 (22:37 +0000)
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)

source4/dsdb/tests/python/rodc_rwdc.py

index a09d16a01632a51e2cb361e29e2c8207622a8a01..b9ea18e5b68b3f0961fcfdab62503aa119cd1d2f 100644 (file)
@@ -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)