Prevent flaky test by changing container names.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
d264c2e33a
commit
235fe21fd0
3 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue