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:
parent
7049b2153b
commit
c8d7e4c898
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user