mirror of https://github.com/docker/compose.git
Do not fil on first error on ACI restart, allow trying a second time
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
8b3b634b04
commit
3a06e1fde0
|
@ -477,7 +477,7 @@ 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.RunDockerOrExitError("start", container)
|
||||||
//Flaky errors on restart : Code="ContainerGroupTransitioning" Message="The container group 'test-container' is still transitioning, please retry later."
|
//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"`) {
|
if res.ExitCode != 0 && strings.Contains(res.Stderr(), `Code="ContainerGroupTransitioning"`) {
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
|
|
Loading…
Reference in New Issue