Prevent flaky test by changing container names.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2015-08-26 18:55:22 -04:00
commit 235fe21fd0
3 changed files with 4 additions and 2 deletions

View file

@ -33,6 +33,9 @@ class DockerClientTestCase(unittest.TestCase):
options = ServiceLoader(working_dir='.').make_service_dict(name, kwargs)
labels = options.setdefault('labels', {})
labels['com.docker.compose.test-name'] = self.id()
return Service(
project='composetest',
client=self.client,