From c8d7e4c8985ab08b8f5580c1d823cf6b54b273c7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 21 May 2018 10:40:00 +1200 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed May 23 00:53:25 CEST 2018 on sn-devel-144 --- python/samba/tests/emulate/traffic_packet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/samba/tests/emulate/traffic_packet.py b/python/samba/tests/emulate/traffic_packet.py index a2c4567ed1d..56b126759b2 100644 --- a/python/samba/tests/emulate/traffic_packet.py +++ b/python/samba/tests/emulate/traffic_packet.py @@ -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): -- 2.34.1