Merge pull request #1067 from docker/more_aci_flakyness

Avoiding more ACI flakyness
This commit is contained in:
Guillaume Tardif 2020-12-15 16:19:06 +01:00 committed by GitHub
commit ebe7248a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -500,7 +500,12 @@ func TestContainerRunAttached(t *testing.T) {
l := Lines(res.Stdout())
assert.Equal(t, 2, len(l))
res = c.RunDockerCmd("prune", "--force")
res = c.RunDockerOrExitError("prune", "--force")
if strings.Contains(res.Stderr(), "unsupported protocol scheme") { //Flaky strange error on azure SDK call happening only during prune --force
time.Sleep(1 * time.Second)
res = c.RunDockerCmd("prune", "--force")
}
assert.Equal(t, "Deleted resources:\n"+container+"\nTotal CPUs reclaimed: 0.10, total memory reclaimed: 0.10 GB\n", res.Stdout())
res = c.RunDockerCmd("ps", "--all")