py:dcerpc/raw_protocol: explicitly disconnect additional connections
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Dec 2018 18:42:09 +0000 (19:42 +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_protocol.py

index edc305b..818bd42 100755 (executable)
@@ -4958,6 +4958,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
                                                   context_id=2, return_ack=True)
         self.assertNotEqual(ack2.u.assoc_group_id, ack1.u.assoc_group_id)
 
+        conn2._disconnect("End of Test")
         return
 
     def test_assoc_group_ok1(self):
@@ -4986,6 +4987,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
 
         self.do_single_request(call_id=1, ctx=ctx1, io=inq_if_ids)
         conn2.do_single_request(call_id=1, ctx=ctx2, io=inq_if_ids)
+        conn2._disconnect("End of Test")
         return