py:dcerpc/raw_testcase: disconnect on tearDown() of RawDCERPCTest
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Dec 2018 18:41:08 +0000 (19:41 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 23 Dec 2018 17:15:20 +0000 (18:15 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/dcerpc/raw_testcase.py

index fd004226c31ce7e0a56d02c756d42d6a1b8931d0..d14966e8a82691801dee7727a3f6df72ecdc1ad6 100644 (file)
@@ -76,6 +76,10 @@ class RawDCERPCTest(TestCase):
 
         self.connect()
 
+    def tearDown(self):
+        self._disconnect("tearDown")
+        super(TestCase, self).tearDown()
+
     def noop(self):
         return