From e641ffa0f445d759ce88a604bac4e34c4725a3de Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 10 Jun 2021 09:27:33 +0200 Subject: [PATCH] fix broken network_alias_test Signed-off-by: Nicolas De Loof --- local/compose/create.go | 1 - local/e2e/compose/fixtures/network-alias/compose.yaml | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/local/compose/create.go b/local/compose/create.go index d1c79eef2..6e472da4a 100644 --- a/local/compose/create.go +++ b/local/compose/create.go @@ -284,7 +284,6 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project, } var networkConfig *network.NetworkingConfig - // TODO use network with highest priority, attribute is missing from compose-go for _, id := range service.NetworksByPriority() { net := p.Networks[id] config := service.Networks[id] diff --git a/local/e2e/compose/fixtures/network-alias/compose.yaml b/local/e2e/compose/fixtures/network-alias/compose.yaml index 75cb7067e..e96175939 100644 --- a/local/e2e/compose/fixtures/network-alias/compose.yaml +++ b/local/e2e/compose/fixtures/network-alias/compose.yaml @@ -6,10 +6,6 @@ services: container2: image: nginx networks: - foo: + default: aliases: - alias-of-container2 - -networks: - foo: - name: bar \ No newline at end of file