mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
fix(e2e-tests): handle asynchronous port publishing for ucind container
This commit is contained in:
@@ -160,10 +160,7 @@ func (p *Provisioner) waitPortPublished(ctx context.Context, containerID string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
binding, ok := c.NetworkSettings.Ports[port]
|
binding, ok := c.NetworkSettings.Ports[port]
|
||||||
if !ok {
|
if ok && len(binding) > 0 {
|
||||||
return nil, fmt.Errorf("port '%s' not published", port)
|
|
||||||
}
|
|
||||||
if len(binding) > 0 {
|
|
||||||
return binding, nil
|
return binding, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user