1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

selftest: Clean up ldb on tearDown from each packet in TrafficEmulatorPacketTests

Otherwise the LDB (and so the server resources) are in use until the end of the whole test
due to the way the objects are maintained in python for reporting.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed May 23 00:53:25 CEST 2018 on sn-devel-144
This commit is contained in:
Andrew Bartlett 2018-05-21 10:40:00 +12:00 committed by Jeremy Allison
parent 7049b2153b
commit c8d7e4c898

View File

@ -89,6 +89,7 @@ class TrafficEmulatorPacketTests(samba.tests.TestCase):
def tearDown(self):
super(TrafficEmulatorPacketTests, self).tearDown()
traffic.clean_up_accounts(self.ldb, 1)
del self.ldb
shutil.rmtree(self.tempdir)
def test_packet_cldap_03(self):