compose/tests
Ian Campbell 6649e9aba3 tearDown the project override at the end of each test case
self._project.client is a docker.client.Client, so creating a new self._project
leaks (via the embedded connection pool) a bunch of Unix socket file
descriptors for each test which overrides self.project using this mechanism.

In my tests I observed the test harness using 800-900 file descriptor, which is
OK on Linux with the default limit of 1024 but breaks on OSX (e.g. with
Docker4Mac) where the default limit is only 256. The failure can be provoked on
Linux too with `ulimit -n 256`.

With this fix I have observed the process ending with ~100 file descriptors
open, including 83 Unix sockets, so I think there is likely at least one more
leak lurking.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-07-20 14:34:12 +01:00
..
acceptance tearDown the project override at the end of each test case 2016-07-20 14:34:12 +01:00
fixtures Add support for creating internal networks 2016-07-11 11:34:01 +02:00
integration Merge pull request #3364 from TomasTomecek/3355-detailed-error-messages 2016-07-11 16:29:35 -04:00
unit Add support for creating internal networks 2016-07-11 11:34:01 +02:00
__init__.py Update pre-commit config to enforace that future imports exist in all files. 2016-01-07 13:09:03 -05:00
helpers.py Limit occurrences of creating an environment object. 2016-03-24 10:57:01 -07:00