Merge pull request #4069 from shin-/project_tests_robustness

Improve robustness of a couple integration tests with occasional failures
This commit is contained in:
Aanand Prasad 2016-10-24 15:35:52 -07:00 committed by GitHub
commit 021bb41fc6
1 changed files with 4 additions and 4 deletions

View File

@ -826,9 +826,9 @@ class ProjectTest(DockerClientTestCase):
name='composetest',
config_data=config_data
)
project.up()
project.up(detached=True)
service_container = project.get_service('web').containers()[0]
service_container = project.get_service('web').containers(stopped=True)[0]
ipam_config = service_container.inspect().get(
'NetworkSettings', {}
).get(
@ -857,8 +857,8 @@ class ProjectTest(DockerClientTestCase):
name='composetest',
config_data=config_data
)
project.up()
service_container = project.get_service('web').containers()[0]
project.up(detached=True)
service_container = project.get_service('web').containers(stopped=True)[0]
assert service_container.inspect()['HostConfig']['Isolation'] == 'default'
@v2_1_only()