From b4005403032b0b33ca88d3abcbf085621b32bd5b Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Wed, 24 Nov 2021 11:30:38 +1300 Subject: [PATCH] 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) --- source4/dsdb/tests/python/priv_attrs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.2