mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
selftest: close connections after tests in samba4.ldap.secdesc.python
This test suite had a memory impact of around 2.2GB, from LDAP connection handlers under the standard process model. Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jan 8 08:02:15 CET 2018 on sn-devel-144
This commit is contained in:
committed by
Andrew Bartlett
parent
babf0a7bef
commit
fe164a08dd
@ -150,8 +150,13 @@ showInAdvancedViewOnly: TRUE
|
||||
self.schema_dn = self.ldb_admin.get_schema_basedn().get_linearized()
|
||||
self.domain_sid = security.dom_sid(self.ldb_admin.get_domain_sid())
|
||||
self.sd_utils = sd_utils.SDUtils(self.ldb_admin)
|
||||
self.addCleanup(self.delete_admin_connection)
|
||||
print "baseDN: %s" % self.base_dn
|
||||
|
||||
def delete_admin_connection(self):
|
||||
del self.sd_utils
|
||||
del self.ldb_admin
|
||||
|
||||
################################################################################################
|
||||
|
||||
## Tests for DOMAIN
|
||||
|
Reference in New Issue
Block a user