From: Jo Sutton Date: Mon, 19 Feb 2024 23:27:36 +0000 (+1300) Subject: python: Fail the test if we don’t receive an NTSTATUSError X-Git-Tag: tdb-1.4.11~1680 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b0f3f3d100dcdf5a5bf9947a2baa574af76ad30;p=thirdparty%2Fsamba.git python: Fail the test if we don’t receive an NTSTATUSError Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/auth_log_netlogon_bad_creds.py b/python/samba/tests/auth_log_netlogon_bad_creds.py index e97ca851d11..9894d9bfd03 100644 --- a/python/samba/tests/auth_log_netlogon_bad_creds.py +++ b/python/samba/tests/auth_log_netlogon_bad_creds.py @@ -159,6 +159,8 @@ class AuthLogTestsNetLogonBadCreds(samba.tests.auth_log_base.AuthLogTestBase): 0) except NTSTATUSError: pass + else: + self.fail() self.waitForMessages(isLastExpectedMessage) def test_netlogon_password_HMAC_MD5(self): @@ -187,4 +189,6 @@ class AuthLogTestsNetLogonBadCreds(samba.tests.auth_log_base.AuthLogTestBase): NETLOGON_NEG_STRONG_KEYS) except NTSTATUSError: pass + else: + self.fail() self.waitForMessages(isLastExpectedMessage)