summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2021-11-24 11:30:38 +1300
committerJule Anger <janger@samba.org>2022-07-24 11:42:01 +0200
commitb4005403032b0b33ca88d3abcbf085621b32bd5b (patch)
treef8b66c4400aed143f4ee218024616c025d9d474e
parent06a0a75b16bace9c29568653d9e4bde4050c5ee5 (diff)
downloadsamba-b4005403032b0b33ca88d3abcbf085621b32bd5b.tar.gz
selftest: Check received LDB error code when STRICT_CHECKING=0
We were instead only checking the expected error. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit ad4d6fb01fd8083e68f07c427af8932574810cdc)
-rw-r--r--source4/dsdb/tests/python/priv_attrs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/tests/python/priv_attrs.py b/source4/dsdb/tests/python/priv_attrs.py
index aa35dcc1317..4dfdfb9cbb8 100644
--- a/source4/dsdb/tests/python/priv_attrs.py
+++ b/source4/dsdb/tests/python/priv_attrs.py
@@ -167,7 +167,7 @@ class PrivAttrsTests(samba.tests.TestCase):
creds_tmp.set_kerberos_state(DONT_USE_KERBEROS) # kinit is too expensive to use in a tight loop
return creds_tmp
- def assertGotLdbError(self, got, wanted):
+ def assertGotLdbError(self, wanted, got):
if not self.strict_checking:
self.assertNotEqual(got, ldb.SUCCESS)
else: