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:
Guillaume Tardif 2021-01-11 11:15:17 +01:00
parent 8b3b634b04
commit 3a06e1fde0
1 changed files with 1 additions and 1 deletions

View File

@ -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)