浏览代码

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 年之前
父节点
当前提交
2287d44851
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)