From d78d038fd1e14b2dc85068bb4c4620cff683d177 Mon Sep 17 00:00:00 2001 From: Pavel Sviderski Date: Tue, 20 May 2025 10:37:32 +1000 Subject: [PATCH] fix(e2e-tests): handle asynchronous port publishing for ucind container --- internal/ucind/machine.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/ucind/machine.go b/internal/ucind/machine.go index 07f4c730..ae71d8da 100644 --- a/internal/ucind/machine.go +++ b/internal/ucind/machine.go @@ -160,10 +160,7 @@ func (p *Provisioner) waitPortPublished(ctx context.Context, containerID string, } binding, ok := c.NetworkSettings.Ports[port] - if !ok { - return nil, fmt.Errorf("port '%s' not published", port) - } - if len(binding) > 0 { + if ok && len(binding) > 0 { return binding, nil }