فهرست منبع

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 <[email protected]>
Ian Campbell 9 سال پیش
والد
کامیت
3124fec01a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      tests/integration/volume_test.py

+ 1 - 0
tests/integration/volume_test.py

@@ -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):