Browse Source

Merge pull request #1119 from docker/flaky_aci_restart

Do not fil on first error on ACI restart, allow trying a second time
Guillaume Tardif 4 years ago
parent
commit
2287d44851
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/aci-e2e/e2e-aci_test.go

+ 1 - 1
tests/aci-e2e/e2e-aci_test.go

@@ -477,7 +477,7 @@ func TestContainerRunAttached(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."
 		if res.ExitCode != 0 && strings.Contains(res.Stderr(), `Code="ContainerGroupTransitioning"`) {
 			time.Sleep(3 * time.Second)