mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Fix alias tests on 1.11
The fix in 8e0458205241f654bb1d75de9babd9880afa7206 caused a regression when testing against 1.11. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
f9f151a51f
commit
949b88fff9
@ -1164,7 +1164,7 @@ class CLITestCase(DockerClientTestCase):
|
||||
for _, config in networks.items():
|
||||
# TODO: once we drop support for API <1.24, this can be changed to:
|
||||
# assert config['Aliases'] == [container.short_id]
|
||||
aliases = set(config['Aliases']) - set([container.short_id])
|
||||
aliases = set(config['Aliases'] or []) - set([container.short_id])
|
||||
assert not aliases
|
||||
|
||||
@v2_only()
|
||||
@ -1184,7 +1184,7 @@ class CLITestCase(DockerClientTestCase):
|
||||
for _, config in networks.items():
|
||||
# TODO: once we drop support for API <1.24, this can be changed to:
|
||||
# assert config['Aliases'] == [container.short_id]
|
||||
aliases = set(config['Aliases']) - set([container.short_id])
|
||||
aliases = set(config['Aliases'] or []) - set([container.short_id])
|
||||
assert not aliases
|
||||
|
||||
assert self.lookup(container, 'app')
|
||||
|
Loading…
x
Reference in New Issue
Block a user