mirror of
https://github.com/docker/compose.git
synced 2025-07-20 12:14:41 +02:00
Fix flaky network test.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
d5ef0dfa92
commit
25cbc2aae9
@ -659,6 +659,7 @@ class ProjectTest(DockerClientTestCase):
|
|||||||
services=[{
|
services=[{
|
||||||
'name': 'web',
|
'name': 'web',
|
||||||
'image': 'busybox:latest',
|
'image': 'busybox:latest',
|
||||||
|
'command': 'top',
|
||||||
'networks': {
|
'networks': {
|
||||||
'static_test': {
|
'static_test': {
|
||||||
'ipv4_address': '172.16.100.100',
|
'ipv4_address': '172.16.100.100',
|
||||||
@ -690,7 +691,7 @@ class ProjectTest(DockerClientTestCase):
|
|||||||
name='composetest',
|
name='composetest',
|
||||||
config_data=config_data,
|
config_data=config_data,
|
||||||
)
|
)
|
||||||
project.up()
|
project.up(detached=True)
|
||||||
|
|
||||||
network = self.client.networks(names=['static_test'])[0]
|
network = self.client.networks(names=['static_test'])[0]
|
||||||
service_container = project.get_service('web').containers()[0]
|
service_container = project.get_service('web').containers()[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user