auth tests: irpc remove "auth_event" name on completion
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 25 May 2018 03:21:33 +0000 (15:21 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 31 May 2018 07:54:18 +0000 (09:54 +0200)
Remove the "auth_event" name on completion of tests to prevent issues
with tests using messaging.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_base.py

index 5a70ce3f9702fee8ee14072c69b531efdd125139..6edd0f6e953523dcc216c79b5e7fcd28ed36b8fe 100644 (file)
@@ -58,6 +58,7 @@ class AuthLogTestBase(samba.tests.TestCase):
         if self.msg_handler_and_context:
             self.msg_ctx.deregister(self.msg_handler_and_context,
                                     msg_type=MSG_AUTH_LOG)
+            self.msg_ctx.irpc_remove_name(AUTH_EVENT_NAME)
 
     def waitForMessages(self, isLastExpectedMessage, connection=None):
         """Wait for all the expected messages to arrive