mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Trying to address more ACI flakyness, on container restart
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
2f4a84baff
commit
f3c017f502
@ -478,6 +478,11 @@ func TestContainerRunAttached(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("restart container", func(t *testing.T) {
|
t.Run("restart container", func(t *testing.T) {
|
||||||
res := c.RunDockerCmd("start", container)
|
res := c.RunDockerCmd("start", container)
|
||||||
|
//Flaky errors on restart : Code="ContainerGroupTransitioning" Message="The container group 'test-container' is still transitioning, please retry later."
|
||||||
|
if res.ExitCode != 0 && strings.Contains(res.Stderr(), `Code="ContainerGroupTransitioning"`) {
|
||||||
|
time.Sleep(3 * time.Second)
|
||||||
|
res = c.RunDockerCmd("start", container)
|
||||||
|
}
|
||||||
res.Assert(t, icmd.Expected{Out: container})
|
res.Assert(t, icmd.Expected{Out: container})
|
||||||
waitForStatus(t, c, container, convert.StatusRunning)
|
waitForStatus(t, c, container, convert.StatusRunning)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user