mirror of https://github.com/docker/compose.git
Improve robustness of a couple integration tests with occasional failures
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
a406378a1f
commit
77b5ac4e54
|
@ -826,9 +826,9 @@ class ProjectTest(DockerClientTestCase):
|
||||||
name='composetest',
|
name='composetest',
|
||||||
config_data=config_data
|
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(
|
ipam_config = service_container.inspect().get(
|
||||||
'NetworkSettings', {}
|
'NetworkSettings', {}
|
||||||
).get(
|
).get(
|
||||||
|
@ -857,8 +857,8 @@ class ProjectTest(DockerClientTestCase):
|
||||||
name='composetest',
|
name='composetest',
|
||||||
config_data=config_data
|
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]
|
||||||
assert service_container.inspect()['HostConfig']['Isolation'] == 'default'
|
assert service_container.inspect()['HostConfig']['Isolation'] == 'default'
|
||||||
|
|
||||||
@v2_1_only()
|
@v2_1_only()
|
||||||
|
|
Loading…
Reference in New Issue