From f3c017f5021efb11b6c1df31e67cc588f4b9dd41 Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Wed, 6 Jan 2021 11:13:22 +0100 Subject: [PATCH] Trying to address more ACI flakyness, on container restart Signed-off-by: Guillaume Tardif --- tests/aci-e2e/e2e-aci_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/aci-e2e/e2e-aci_test.go b/tests/aci-e2e/e2e-aci_test.go index 741ca9044..536ff7792 100644 --- a/tests/aci-e2e/e2e-aci_test.go +++ b/tests/aci-e2e/e2e-aci_test.go @@ -478,6 +478,11 @@ func TestContainerRunAttached(t *testing.T) { t.Run("restart container", func(t *testing.T) { 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}) waitForStatus(t, c, container, convert.StatusRunning) })