tearDown tmp_volumes array itself in VolumeTest

Each volume in the array holds a reference to a docker.client.Client object and
therefore a connection pool which leaves fds open once the test has completed.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
Ian Campbell 2016-07-21 12:21:43 +01:00
parent 5cdf30fc12
commit 3124fec01a
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class VolumeTest(DockerClientTestCase):
self.client.remove_volume(volume.full_name)
except DockerException:
pass
del self.tmp_volumes
def create_volume(self, name, driver=None, opts=None, external=None):
if external and isinstance(external, bool):