From: Joseph Sutton Date: Tue, 23 Nov 2021 22:30:38 +0000 (+1300) Subject: selftest: Check received LDB error code when STRICT_CHECKING=0 X-Git-Tag: samba-4.14.14~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4005403032b0b33ca88d3abcbf085621b32bd5b;p=thirdparty%2Fsamba.git selftest: Check received LDB error code when STRICT_CHECKING=0 We were instead only checking the expected error. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett (cherry picked from commit ad4d6fb01fd8083e68f07c427af8932574810cdc) --- 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: